Foxit PDF SDK
com.foxit.sdk.pdf.RevocationCallback类 参考

Public 成员函数

java.util.ArrayList< byte[]> getCertChainFromSignature (byte[] signature_content) throws com.foxit.sdk.PDFException
 用于从签名内容中获取证书链的回调函数。
更多...
 
TimeRange getCertValidTimeRange (byte[] cert) throws com.foxit.sdk.PDFException
 用于获取表示证书有效期的时间范围的回调函数。
更多...
 
byte[] getCRLSignature (byte[] crl_data) throws com.foxit.sdk.PDFException
 用于从 CRL 响应中获取签名内容的回调函数。
更多...
 
DateTime getDTSTime (byte[] signature_content) throws com.foxit.sdk.PDFException
 用于从签名内容中获取 DTS(文档时间戳签名)时间的回调函数。
更多...
 
CertIssuerPair getOCSPCertAndIssuer (byte[] ocsp_data, java.util.ArrayList< byte[]> trust_cert_chain) throws com.foxit.sdk.PDFException
 用于获取 OCSP 响应的证书-颁发者对的回调函数。
更多...
 
DateTime getOCSPProducedAtTime (byte[] ocsp_data) throws com.foxit.sdk.PDFException
 用于获取 OCSP 响应生成时间的回调函数。
更多...
 
byte[] getOCSPSignature (byte[] ocsp_data) throws com.foxit.sdk.PDFException
 用于从 OCSP 响应中获取签名内容的回调函数。
更多...
 
Response getResponseOnLineForSingleCert (CertIssuerPair cert_issuer_pair) throws com.foxit.sdk.PDFException
 用于在线获取证书响应的回调函数。
更多...
 
RevocationArrayInfo getRevocationInfoFromSignatureData (byte[] signature_content) throws com.foxit.sdk.PDFException
 用于从签名中获取撤销信息(数组类型)的回调函数。
更多...
 
byte[] getTSTSignature (byte[] signature_content) throws com.foxit.sdk.PDFException
 用于从签名内容中获取时间戳令牌内容的回调函数。
更多...
 
DateTime getTSTTime (byte[] signature_content) throws com.foxit.sdk.PDFException
 用于从签名内容中获取时间戳令牌时间的回调函数。
更多...
 
boolean isCA (byte[] cert)
 用于判断证书是否为 CA 证书的回调函数。
更多...
 
boolean isIssuerMatchCert (CertIssuerPair cert_issuer_pair)
 用于检查颁发者是否与证书匹配的回调函数。
更多...
 
boolean isOCSPNeedCheck (byte[] ocsp_data)
 用于获取是否需要检查 OCSP 响应的标志的回调函数。
更多...
 
void release ()
 用于释放当前回调对象本身的回调函数。
更多...
 
CertVerifyResult verifyCRL (CertIssuerPair cert_issuer_pair, byte[] crl_data) throws com.foxit.sdk.PDFException
 用于验证 CRL 响应是否与证书匹配并获取证书验证结果的回调函数。
更多...
 
CertVerifyResult verifyOCSP (CertIssuerPair cert_issuer_pair, byte[] ocsp_data) throws com.foxit.sdk.PDFException
 用于验证 OCSP 响应是否与证书匹配并获取证书验证结果的回调函数。
更多...
 

详细描述

此类表示用于 LTVVerifier 类的撤销回调对象。 此类中的所有纯虚函数都用作回调函数,应由用户实现。

参见
LTVVerifier

成员函数说明

◆ getCertChainFromSignature()

java.util.ArrayList< DX_BYTE_ARRAY > com.foxit.sdk.pdf.RevocationCallback.getCertChainFromSignature ( byte[]  signature_content) throws com.foxit.sdk.PDFException

用于从签名内容中获取证书链的回调函数。

参数
[in]signature_content签名内容。
返回
表示证书链的数组。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getCertValidTimeRange()

TimeRange com.foxit.sdk.pdf.RevocationCallback.getCertValidTimeRange ( byte[]  cert) throws com.foxit.sdk.PDFException

用于获取表示证书有效期的时间范围的回调函数。

参数
[in]cert证书内容。
返回
表示证书有效期的时间范围。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getCRLSignature()

DX_BYTE_ARRAY com.foxit.sdk.pdf.RevocationCallback.getCRLSignature ( byte[]  crl_data) throws com.foxit.sdk.PDFException

用于从 CRL 响应中获取签名内容的回调函数。

参数
[in]crl_dataCRL 响应内容。
返回
签名内容。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getDTSTime()

DateTime com.foxit.sdk.pdf.RevocationCallback.getDTSTime ( byte[]  signature_content) throws com.foxit.sdk.PDFException

用于从签名内容中获取 DTS(文档时间戳签名)时间的回调函数。

参数
[in]signature_content签名内容。
返回
DTS 时间。此时间的 utc_hour_offsetutc_minite_offset 将被忽略。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getOCSPCertAndIssuer()

CertIssuerPair com.foxit.sdk.pdf.RevocationCallback.getOCSPCertAndIssuer ( byte[]  ocsp_data,
java.util.ArrayList< byte[]>  trust_cert_chain 
) throws com.foxit.sdk.PDFException

用于获取 OCSP 响应的证书-颁发者对的回调函数。

参数
[in]ocsp_dataOCSP 响应数据。
[in]trust_cert_chain用于查找 OCSP 证书颁发者的受信任证书链。
返回
从 OCSP 获得的证书-颁发者对。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getOCSPProducedAtTime()

DateTime com.foxit.sdk.pdf.RevocationCallback.getOCSPProducedAtTime ( byte[]  ocsp_data) throws com.foxit.sdk.PDFException

用于获取 OCSP 响应生成时间的回调函数。

参数
[in]ocsp_dataOCSP 响应内容。
返回
OCSP 响应的生成时间。此时间的 utc_hour_offsetutc_minite_offset 将被忽略。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getOCSPSignature()

DX_BYTE_ARRAY com.foxit.sdk.pdf.RevocationCallback.getOCSPSignature ( byte[]  ocsp_data) throws com.foxit.sdk.PDFException

用于从 OCSP 响应中获取签名内容的回调函数。

参数
[in]ocsp_dataOCSP 响应内容。
返回
签名内容。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getResponseOnLineForSingleCert()

Response com.foxit.sdk.pdf.RevocationCallback.getResponseOnLineForSingleCert ( CertIssuerPair  cert_issuer_pair) throws com.foxit.sdk.PDFException

用于在线获取证书响应的回调函数。

参数
[in]cert_issuer_pair证书-颁发者对,表示证书及其颁发者。
返回
证书的响应。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getRevocationInfoFromSignatureData()

RevocationArrayInfo com.foxit.sdk.pdf.RevocationCallback.getRevocationInfoFromSignatureData ( byte[]  signature_content) throws com.foxit.sdk.PDFException

用于从签名中获取撤销信息(数组类型)的回调函数。

参数
[in]signature_content签名内容。
返回
数组类型的撤销信息。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getTSTSignature()

DX_BYTE_ARRAY com.foxit.sdk.pdf.RevocationCallback.getTSTSignature ( byte[]  signature_content) throws com.foxit.sdk.PDFException

用于从签名内容中获取时间戳令牌内容的回调函数。

参数
[in]signature_content签名内容。
返回
时间戳令牌内容。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ getTSTTime()

DateTime com.foxit.sdk.pdf.RevocationCallback.getTSTTime ( byte[]  signature_content) throws com.foxit.sdk.PDFException

用于从签名内容中获取时间戳令牌时间的回调函数。

参数
[in]signature_content签名内容。
返回
签名的时间戳令牌时间。此时间的 utc_hour_offsetutc_minite_offset 将被忽略。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ isCA()

boolean com.foxit.sdk.pdf.RevocationCallback.isCA ( byte[]  cert)

用于判断证书是否为 CA 证书的回调函数。

参数
[in]cert证书内容。
返回
true 表示证书是 CA 证书,false 表示不是。

◆ isIssuerMatchCert()

boolean com.foxit.sdk.pdf.RevocationCallback.isIssuerMatchCert ( CertIssuerPair  cert_issuer_pair)

用于检查颁发者是否与证书匹配的回调函数。

参数
[in]cert_issuer_pair证书-颁发者对。此对中的颁发者将被检查 是否与此对中的证书匹配。
返回
true 表示颁发者与证书匹配,false 表示不匹配。

◆ isOCSPNeedCheck()

boolean com.foxit.sdk.pdf.RevocationCallback.isOCSPNeedCheck ( byte[]  ocsp_data)

用于获取是否需要检查 OCSP 响应的标志的回调函数。

参数
[in]ocsp_dataOCSP 响应内容。
返回
true 表示需要检查 OCSP 响应,false 表示不需要。

◆ release()

void com.foxit.sdk.pdf.RevocationCallback.release ( )

用于释放当前回调对象本身的回调函数。

返回
无。

◆ verifyCRL()

CertVerifyResult com.foxit.sdk.pdf.RevocationCallback.verifyCRL ( CertIssuerPair  cert_issuer_pair,
byte[]  crl_data 
) throws com.foxit.sdk.PDFException

用于验证 CRL 响应是否与证书匹配并获取证书验证结果的回调函数。

参数
[in]cert_issuer_pair证书-颁发者对,表示证书及其颁发者。
[in]crl_dataCRL 内容。
返回
从 CRL 获得的证书验证结果。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。

◆ verifyOCSP()

CertVerifyResult com.foxit.sdk.pdf.RevocationCallback.verifyOCSP ( CertIssuerPair  cert_issuer_pair,
byte[]  ocsp_data 
) throws com.foxit.sdk.PDFException

用于验证 OCSP 响应是否与证书匹配并获取证书验证结果的回调函数。

参数
[in]cert_issuer_pair证书-颁发者对,表示证书及其颁发者。
[in]ocsp_dataOCSP 内容。
返回
从 CRL 获得的证书验证结果。
注解
用户可以抛出异常以处理错误。请参考 com.foxit.sdk.PDFException 类和 从 com.foxit.sdk.common.Constants.e_ErrFile 开始的值。