Foxit PDF SDK
foxit::ofd::ofdseal::SealSignature类 参考
类 foxit::ofd::ofdseal::SealSignature 继承关系图:
foxit::ofd::ofdseal::Signature foxit::Base

Public 成员函数

 SealSignature (Signature object)
 构造函数,从现有foxit::ofd::ofdseal::Signature对象。 更多...
 
 SealSignature (const SealSignature &other)
 构造函数,通过另一个签章对象。 更多...
 
 ~SealSignature ()
 析构函数。
 
bool ExportPublicCertificateFile (const String &file_path)
 导出公钥证书文件。 更多...
 
bool ExportPublicCertificateFile (const WString &file_path)
 导出公钥证书文件。 更多...
 
bool ExportPublicCertificateFile (foxit::common::file::WriterCallback *writer_callback)
 导出公钥证书文件。 更多...
 
foxit::common::Bitmap GetImage ()
 获取电子印章图片。 更多...
 
WString GetSealId ()
 获取电子印章ID。 更多...
 
WString GetSealName ()
 获取电子印章名称。 更多...
 
WString GetSealSignedDate ()
 获取电子印章签章时间。 更多...
 
String GetSealSignerCertInfo ()
 获取电子印章签章者证书信息。 更多...
 
WString GetSealSignMethod ()
 获取电子印章签章算法。 更多...
 
WString GetSealType ()
 获取电子印章类型。 更多...
 
WString GetSealValidEndTime ()
 获取电子印章有效截止时间。 更多...
 
WString GetSealValidStartTime ()
 获取电子印章有效起始时间。 更多...
 
WString GetSealVenderId ()
 获取电子印章供应商ID。 更多...
 
WString GetSealVersion ()
 获取电子印章版本。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const SealSignature &other) const
 不相等操作符。 更多...
 
SealSignatureoperator= (const SealSignature &other)
 赋值操作符。 更多...
 
bool operator== (const SealSignature &other) const
 相等操作符。 更多...
 
bool Verify (bool online=false)
 验证签章的有效性。 更多...
 
bool VerifyEx (const foxit::ofd::ofdseal::VerifyExtendInfo &extend_info, bool online=false)
 使用扩展信息验证签章的有效性。 更多...
 
bool VerifyWithOes (const Oes &oes, bool online=false)
 使用指定的电子印章验证签章的有效性。 更多...
 
bool VerifyWithoutOes (bool online=false)
 不依赖电子印章库验证签章的有效性。 更多...
 
- Public 成员函数 继承自 foxit::ofd::ofdseal::Signature
 Signature (const Signature &other)
 构造函数,通过另一个签名对象。 更多...
 
 ~Signature ()
 析构函数。
 
WString GetCompany ()
 获取公司名称。 更多...
 
WString GetDigestMethod ()
 获取摘要算法名称。 更多...
 
WString GetProviderName ()
 获取提供者名称。 更多...
 
WString GetSignMethod ()
 获取签名算法名称。 更多...
 
SignatureType GetType ()
 获取签名类型。 更多...
 
WString GetVerifyMessage ()
 获取验证结果详细信息。 更多...
 
WString GetVersion ()
 获取签名或签章版本。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool Operate (const foxit::ofd::ofdseal::OperateSignatureInfo &info)
 对OFD文档内的签名或签章进行操作。 更多...
 
bool operator != (const Signature &other) const
 不相等操作符. 更多...
 
Signatureoperator= (const Signature &other)
 赋值操作符。 更多...
 
bool operator== (const Signature &other) const
 相等操作符。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

额外继承的成员函数

- Public 类型 继承自 foxit::ofd::ofdseal::Signature
enum  SignatureType { e_SignatureTypeDefault = 0, e_SignatureTypeSeal = 1, e_SignatureTypeSign = 2, e_SignatureTypeTimeStamp = 3 }
 OFD文档签名类型枚举。 更多...
 

详细描述

此类表示OFD文档签章对象相关的操作。

构造及析构函数说明

◆ SealSignature() [1/2]

foxit::ofd::ofdseal::SealSignature::SealSignature ( Signature  object)
explicit

构造函数,从现有foxit::ofd::ofdseal::Signature对象。

参数
[in]objectSignature对象。 此对象必须是一个有效的对象,并且其类型必须是foxit::ofd::ofdseal::SignatureType::e_SignatureTypeSeal,否则构造函数将抛出异常。

◆ SealSignature() [2/2]

foxit::ofd::ofdseal::SealSignature::SealSignature ( const SealSignature other)

构造函数,通过另一个签章对象。

参数
[in]other另一个签章对象。

成员函数说明

◆ ExportPublicCertificateFile() [1/3]

bool foxit::ofd::ofdseal::SealSignature::ExportPublicCertificateFile ( const String file_path)

导出公钥证书文件。

参数
[in]file_path公钥证书文件保存的目标路径。
返回
true表示导出成功,false表示导出失败。

◆ ExportPublicCertificateFile() [2/3]

bool foxit::ofd::ofdseal::SealSignature::ExportPublicCertificateFile ( const WString file_path)

导出公钥证书文件。

参数
[in]file_path公钥证书文件保存的目标路径。
返回
true表示导出成功,false表示导出失败。

◆ ExportPublicCertificateFile() [3/3]

bool foxit::ofd::ofdseal::SealSignature::ExportPublicCertificateFile ( foxit::common::file::WriterCallback writer_callback)

导出公钥证书文件。

参数
[in]writer_callback用户实现的 common::file::WriterCallback 对象,用于保存公钥证书文件。
返回
true表示导出成功,false表示导出失败。

◆ GetImage()

foxit::common::Bitmap foxit::ofd::ofdseal::SealSignature::GetImage ( )

获取电子印章图片。

返回
图像对象。详见 foxit::common::Bitmap

◆ GetSealId()

WString foxit::ofd::ofdseal::SealSignature::GetSealId ( )

获取电子印章ID。

返回
电子印章ID。

◆ GetSealName()

WString foxit::ofd::ofdseal::SealSignature::GetSealName ( )

获取电子印章名称。

返回
电子印章名称。

◆ GetSealSignedDate()

WString foxit::ofd::ofdseal::SealSignature::GetSealSignedDate ( )

获取电子印章签章时间。

返回
电子印章签章时间。

◆ GetSealSignerCertInfo()

String foxit::ofd::ofdseal::SealSignature::GetSealSignerCertInfo ( )

获取电子印章签章者证书信息。

返回
电子印章签章者证书信息。

◆ GetSealSignMethod()

WString foxit::ofd::ofdseal::SealSignature::GetSealSignMethod ( )

获取电子印章签章算法。

返回
电子印章签章算法。

◆ GetSealType()

WString foxit::ofd::ofdseal::SealSignature::GetSealType ( )

获取电子印章类型。

返回
电子印章类型。

◆ GetSealValidEndTime()

WString foxit::ofd::ofdseal::SealSignature::GetSealValidEndTime ( )

获取电子印章有效截止时间。

返回
电子印章有效截止时间。

◆ GetSealValidStartTime()

WString foxit::ofd::ofdseal::SealSignature::GetSealValidStartTime ( )

获取电子印章有效起始时间。

返回
电子印章有效起始时间。

◆ GetSealVenderId()

WString foxit::ofd::ofdseal::SealSignature::GetSealVenderId ( )

获取电子印章供应商ID。

返回
电子印章供应商ID。

◆ GetSealVersion()

WString foxit::ofd::ofdseal::SealSignature::GetSealVersion ( )

获取电子印章版本。

返回
电子印章版本。

◆ IsEmpty()

bool foxit::ofd::ofdseal::SealSignature::IsEmpty ( ) const

检查当前对象是否为空。

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

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

◆ operator !=()

bool foxit::ofd::ofdseal::SealSignature::operator != ( const SealSignature other) const

不相等操作符。

参数
[in]other另一个签章对象。此函数将检查当前对象是否不等于这个对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

SealSignature& foxit::ofd::ofdseal::SealSignature::operator= ( const SealSignature other)

赋值操作符。

参数
[in]other另一个签章对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ operator==()

bool foxit::ofd::ofdseal::SealSignature::operator== ( const SealSignature other) const

相等操作符。

参数
[in]other另一个签章对象。此函数将检查当前对象是否等于这个对象。
返回
true 表示相等,false 表示不相等。

◆ Verify()

bool foxit::ofd::ofdseal::SealSignature::Verify ( bool  online = false)

验证签章的有效性。

参数
[in]online是否进行在线验证。 true 表示在线验证,false 表示离线验证。默认值为 false
返回
true 表示验证成功,false 表示验证失败。

◆ VerifyEx()

bool foxit::ofd::ofdseal::SealSignature::VerifyEx ( const foxit::ofd::ofdseal::VerifyExtendInfo extend_info,
bool  online = false 
)

使用扩展信息验证签章的有效性。

参数
[in]extend_info验证扩展信息参数。详见 foxit::ofd::ofdseal::VerifyExtendInfo
[in]online是否进行在线验证。 true 表示在线验证,false 表示离线验证。默认值为 false
返回
true 表示验证成功,false 表示验证失败。

◆ VerifyWithOes()

bool foxit::ofd::ofdseal::SealSignature::VerifyWithOes ( const Oes oes,
bool  online = false 
)

使用指定的电子印章验证签章的有效性。

参数
[in]oes电子印章库对象。详见 foxit::ofd::ofdseal::Oes
[in]online是否进行在线验证。 true 表示在线验证,false 表示离线验证。默认值为 false
返回
true 表示验证成功,false 表示验证失败。

◆ VerifyWithoutOes()

bool foxit::ofd::ofdseal::SealSignature::VerifyWithoutOes ( bool  online = false)

不依赖电子印章库验证签章的有效性。

参数
[in]online是否进行在线验证。 true 表示在线验证,false 表示离线验证。默认值为 false
返回
true 表示验证成功,false 表示验证失败。