Foxit PDF SDK
com.foxit.sdk.pdf.TimeStampServer类 参考
类 com.foxit.sdk.pdf.TimeStampServer 继承关系图:
com.foxit.sdk.common.Base

Public 成员函数

 TimeStampServer (TimeStampServer other)
 构造函数,使用另一个时间戳服务器对象。
更多...
 
synchronized void delete ()
 直接清除C++相关资源。 更多...
 
byte[] getTimeStampMessage () throws com.foxit.sdk.PDFException
 获取时间戳消息。
更多...
 
boolean isEmpty ()
 检查当前对象是否为空。
更多...
 
int sendTimeStampRequest (byte[] request) throws com.foxit.sdk.PDFException
 发送时间戳请求。
更多...
 

静态 Public 属性

static final int e_SendResultFailToConnect = 2
 在发送请求过程中连接失败。

 
static final int e_SendResultFailToCreateSocket = 1
 在发送请求过程中创建套接字失败。

 
static final int e_SendResultFailToGetData = 6
 在发送请求过程中获取数据失败。

 
static final int e_SendResultFailToReceiveData = 4
 在发送请求过程中接收数据失败。

 
static final int e_SendResultFailToRequest = 5
 在发送请求过程中请求失败。

 
static final int e_SendResultFailToSendData = 3
 在发送请求过程中发送数据失败。

 
static final int e_SendResultOutOfMemory = 7
 在发送请求过程中内存不足。

 
static final int e_SendResultSuccess = 0
 成功发送请求。

 

详细描述

此类表示时间戳服务器。它可以用于发送时间戳请求并获取消息。

构造及析构函数说明

◆ TimeStampServer()

com.foxit.sdk.pdf.TimeStampServer.TimeStampServer ( TimeStampServer  other)

构造函数,使用另一个时间戳服务器对象。

参数
[in]other另一个时间戳服务器对象。

成员函数说明

◆ delete()

synchronized void com.foxit.sdk.pdf.TimeStampServer.delete ( )

直接清除C++相关资源。

返回
无。
注解
一旦这个接口被调用,这个对象将不能再被使用。

重载 com.foxit.sdk.common.Base .

◆ getTimeStampMessage()

DX_BYTE_ARRAY com.foxit.sdk.pdf.TimeStampServer.getTimeStampMessage ( ) throws com.foxit.sdk.PDFException

获取时间戳消息。

此函数用于在函数TimeStampServer.sendTimeStampRequest 成功运行后获取时间戳消息。

返回
时间戳消息。

◆ isEmpty()

boolean com.foxit.sdk.pdf.TimeStampServer.isEmpty ( )

检查当前对象是否为空。

当当前对象为空时,表示当前对象无用。

返回
true表示当前对象为空,false表示不为空。

◆ sendTimeStampRequest()

int com.foxit.sdk.pdf.TimeStampServer.sendTimeStampRequest ( byte[]  request) throws com.foxit.sdk.PDFException

发送时间戳请求。

参数
[in]request要发送的时间戳请求。不应为空字符串。
返回
发送请求过程的结果值。请参考从 com.foxit.sdk.pdf.TimeStampServer.e_SendResultSuccess 开始的值,这将是这些值中的一个。