Foxit PDF SDK
FSDK::TimeStampServerMgr类 参考

静态 Public 成员函数

static AddServer (server_name, server_url, user_name, password)
 将时间戳服务器添加到管理器。 更多...
 
static GetDefaultServer ()
 获取默认时间戳服务器对象。 更多...
 
static GetServer (index)
 获取具有指定索引的时间戳服务器。 更多...
 
static GetServerCount ()
 获取时间戳服务器数量。 更多...
 
static GetServerIndex (server)
 获取指定时间戳服务器对象的索引。 更多...
 
static Initialize ()
 初始化时间戳服务器管理器。 更多...
 
static Release ()
 释放时间戳服务器管理器。 更多...
 
static RemoveServer (index)
 通过索引从管理器中移除时间戳服务器。 更多...
 
static RemoveServer (server)
 通过索引从管理器中移除时间戳服务器。 更多...
 
static SetDefaultServer (index)
 通过索引设置默认时间戳服务器对象。 更多...
 
static SetDefaultServer (server)
 通过索引设置默认时间戳服务器对象。 更多...
 

详细描述

时间戳服务器管理器用于管理一些时间戳服务器。此管理器中的默认时间戳服务器将 用于过滤器 "Adobe.PPKLite" 及子过滤器 "ETSI.CAdES.detached" 和 过滤器 "Adobe.PPKLite" 及子过滤器 "ETSI.RFC3161" 的默认签名回调。因此,在使用 Foxit PDF SDK 中的默认签名回调 签署或验证这些过滤器-子过滤器对中的签名之前,请确保已通过 FSDK.Library.SetTimeStampCallback 设置了有效的 FSDK.TimeStampCallback 对象,或者时间戳服务器管理器已初始化并设置了默认服务器, 如果两者都设置了,Foxit PDF SDK 将使用 FSDK.TimeStampCallback

成员函数说明

◆ AddServer()

static FSDK::TimeStampServerMgr::AddServer ( server_name  ,
server_url  ,
user_name  ,
password   
)
static

将时间戳服务器添加到管理器。

参数
[in]server_name时间戳服务器的名称。不应为空字符串。
[in]server_url时间戳服务器的 URL。不应为空字符串。
[in]user_name时间戳服务器的用户名。如果不需要,请传递空字符串。
[in]password时间戳服务器的密码。如果不需要,请传递空字符串。
返回
新添加的时间戳服务器对象。

◆ GetDefaultServer()

static FSDK::TimeStampServerMgr::GetDefaultServer ( )
static

获取默认时间戳服务器对象。

返回
作为默认服务器的时间戳服务器对象。

◆ GetServer()

static FSDK::TimeStampServerMgr::GetServer ( index  )
static

获取具有指定索引的时间戳服务器。

参数
[in]index时间戳服务器索引。有效范围:从 0 到 (count-1)。 count 由函数 FSDK.TimeStampServerMgr.GetServerCount 返回。
返回
时间戳服务器对象。

◆ GetServerCount()

static FSDK::TimeStampServerMgr::GetServerCount ( )
static

获取时间戳服务器数量。

返回
服务器数量。

◆ GetServerIndex()

static FSDK::TimeStampServerMgr::GetServerIndex ( server  )
static

获取指定时间戳服务器对象的索引。

参数
[in]server时间戳服务器对象。
返回
指定时间戳服务器对象的索引。

◆ Initialize()

static FSDK::TimeStampServerMgr::Initialize ( )
static

初始化时间戳服务器管理器。

在调用 FSDK.TimeStampServerMgr 中的任何其他函数之前,应首先调用此函数。

返回
FSDK.e_ErrSuccess 表示成功。
有关错误代码值的更多信息,请参考从 FSDK.e_ErrSuccess 开始的值。

◆ Release()

static FSDK::TimeStampServerMgr::Release ( )
static

释放时间戳服务器管理器。

当不再需要使用时,用户可以调用此函数来释放时间戳服务器管理器。 调用此函数后,如果用户想再次使用时间戳服务器管理器,请再次调用函数 FSDK.TimeStampServerMgr.Initialize

返回
无。

◆ RemoveServer() [1/2]

static FSDK::TimeStampServerMgr::RemoveServer ( index  )
static

通过索引从管理器中移除时间戳服务器。

参数
[in]index要从管理器中移除的时间戳服务器的索引。
返回
无。

◆ RemoveServer() [2/2]

static FSDK::TimeStampServerMgr::RemoveServer ( server  )
static

通过索引从管理器中移除时间戳服务器。

参数
[in]server要从管理器中移除的时间戳服务器对象。 如果输入的服务器对象无效,此函数将不执行任何操作并直接返回。
返回
无。

◆ SetDefaultServer() [1/2]

static FSDK::TimeStampServerMgr::SetDefaultServer ( index  )
static

通过索引设置默认时间戳服务器对象。

参数
[in]index要设置为默认服务器的时间戳服务器的索引。有效范围:从 0 到 (count-1)。 count 由函数 FSDK.TimeStampServerMgr.GetServerCount 返回。
返回
无。

◆ SetDefaultServer() [2/2]

static FSDK::TimeStampServerMgr::SetDefaultServer ( server  )
static

通过索引设置默认时间戳服务器对象。

参数
[in]server要设置为默认服务器的时间戳服务器对象。 如果输入的服务器对象无效,此函数将抛出 异常 FSDK.e_ErrNotFound
返回
无。