时间戳服务器管理器用于管理一些时间戳服务器。此管理器中的默认时间戳服务器将 用于过滤器 "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 |
获取具有指定索引的时间戳服务器。
- 参数
-
- 返回
- 时间戳服务器对象。
◆ GetServerCount()
| static FSDK::TimeStampServerMgr::GetServerCount |
( |
| ) |
|
|
static |
◆ GetServerIndex()
| static FSDK::TimeStampServerMgr::GetServerIndex |
( |
server |
| ) |
|
|
static |
获取指定时间戳服务器对象的索引。
- 参数
-
- 返回
- 指定时间戳服务器对象的索引。
◆ Initialize()
| static FSDK::TimeStampServerMgr::Initialize |
( |
| ) |
|
|
static |
◆ Release()
| static FSDK::TimeStampServerMgr::Release |
( |
| ) |
|
|
static |
◆ 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 |
通过索引设置默认时间戳服务器对象。
- 参数
-
- 返回
- 无。
◆ SetDefaultServer() [2/2]
| static FSDK::TimeStampServerMgr::SetDefaultServer |
( |
server |
| ) |
|
|
static |
通过索引设置默认时间戳服务器对象。
- 参数
-
- 返回
- 无。