Foxit PDF SDK

构造函数 | 所有成员列表
<FSRevocationCallback>协议 参考

继承自 <NSObject> .

## 构造函数
(NSArray< NSData * > *) | - getCertChainFromSignature:
| A callback function used to get the cert chain from the signature content. 更多...
(FSTimeRange *) | - getCertValidTimeRange:
| A callback function used to get the time range that represents validity period of a certificate. 更多...
(NSData *) | - getCRLSignature:
| A callback function used to get the signature content from a CRL response. 更多...
(FSDateTime *) | - getDTSTime:
| A callback function used to get the DTS (document time stamp signature) time from signature content. 更多...
(FSCertIssuerPair *) | - getOCSPCertAndIssuer:trust_cert_chain:
| A callback function used to get the cert-issuer pair of OCSP response 更多...
(FSDateTime *) | - getOCSPProducedAtTime:
| A callback function used to get the produce time of the OCSP response. 更多...
(NSData *) | - getOCSPSignature:
| A callback function used to get the signature content from a OCSP response. 更多...
(FSResponse *) | - getResponseOnLineForSingleCert:
| A callback function used to get response online for a certificate. 更多...
(FSRevocationArrayInfo *) | - getRevocationInfoFromSignatureData:
| A callback function used to get the revocation information (in array type) from a signature. 更多...
(NSData *) | - getTSTSignature:
| A callback function used to get the time stamp token content from a signature content. 更多...
(FSDateTime *) | - getTSTTime:
| A callback function used to get the time stamp token time from signature content. 更多...
(BOOL) | - isCA:
| A callback function used to judge whether a certificate is a CA certificate. 更多...
(BOOL) | - isIssuerMatchCert:
| A callback function used to check if an issuer matches a certificate. 更多...
(BOOL) | - isOCSPNeedCheck:
| A callback function used to get flag which decides if need to check OCSP response. 更多...
(FSCertVerifyResult *) | - verifyCRL:crl_data:
| A callback function used to verify whether the CRL response matches the certificate and get the verify result for the certificate. 更多...
(FSCertVerifyResult *) | - verifyOCSP:ocsp_data:
| A callback function used to verify whether the OCSP response matches the certificate and get the verify result for the certificate. 更多...

## 详细描述

This class represent a revocation callback object which is used for class FSLTVVerifier. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

参见
  FSLTVVerifier

## 函数文档

## ◆ getCertChainFromSignature:()

- (NSArray<NSData*>*) getCertChainFromSignature: |  | (NSData *) | signature_content |
| required

A callback function used to get the cert chain from the signature content.

参数

  [in] | signature_content | Signature content.

返回
  An array that represents the cert chain.

## ◆ getCertValidTimeRange:()

- (FSTimeRange*) getCertValidTimeRange: |  | (NSData *) | cert |
| required

A callback function used to get the time range that represents validity period of a certificate.

参数

  [in] | cert | Certificate content.

返回
  Time range that represents validity period of the certificate.

## ◆ getCRLSignature:()

- (NSData*) getCRLSignature: |  | (NSData *) | crl_data |
| required

A callback function used to get the signature content from a CRL response.

参数

  [in] | crl_data | CRL response content.

返回
  Signature content.

## ◆ getDTSTime:()

- (FSDateTime*) getDTSTime: |  | (NSData *) | signature_content |
| required

A callback function used to get the DTS (document time stamp signature) time from signature content.

参数

  [in] | signature_content | Signature content.

返回
  DTS time. utc_hour_offset and utc_minite_offset of this time would be ignored.

## ◆ getOCSPCertAndIssuer:trust_cert_chain:()

- (FSCertIssuerPair*) getOCSPCertAndIssuer: |  | (NSData *) | ocsp_data
trust_cert_chain: |  | (NSArray< NSData * > *) | trust_cert_chain
| required

A callback function used to get the cert-issuer pair of OCSP response

参数

  [in] | ocsp_data | OCSP response data.
  [in] | trust_cert_chain | The trust cert chain used to find the issuer of the OCSP cert.

返回
  A cert-issuer pair that obtained from OCSP.

## ◆ getOCSPProducedAtTime:()

- (FSDateTime*) getOCSPProducedAtTime: |  | (NSData *) | ocsp_data |
| required

A callback function used to get the produce time of the OCSP response.

参数

  [in] | ocsp_data | OCSP response content.

返回
  Produce time of the OCSP response. utc_hour_offset and utc_minite_offset of this time would be ignored.

## ◆ getOCSPSignature:()

- (NSData*) getOCSPSignature: |  | (NSData *) | ocsp_data |
| required

A callback function used to get the signature content from a OCSP response.

参数

  [in] | ocsp_data | OCSP response content.

返回
  Signature content .

## ◆ getResponseOnLineForSingleCert:()

- (FSResponse*) getResponseOnLineForSingleCert: |  | (FSCertIssuerPair *) | cert_issuer_pair |
| required

A callback function used to get response online for a certificate.

参数

  [in] | cert_issuer_pair | A cert-issuer pair which represents a certificate and an issuer for the certificate.

返回
  Response for the certificate.

## ◆ getRevocationInfoFromSignatureData:()

- (FSRevocationArrayInfo*) getRevocationInfoFromSignatureData: |  | (NSData *) | signature_content |
| required

A callback function used to get the revocation information (in array type) from a signature.

参数

  [in] | signature_content | Signature content.

返回
  Information in array type of revocation information.

## ◆ getTSTSignature:()

- (NSData*) getTSTSignature: |  | (NSData *) | signature_content |
| required

A callback function used to get the time stamp token content from a signature content.

参数

  [in] | signature_content | Signature content.

返回
  Time stamp token content.

## ◆ getTSTTime:()

- (FSDateTime*) getTSTTime: |  | (NSData *) | signature_content |
| required

A callback function used to get the time stamp token time from signature content.

参数

  [in] | signature_content | Signature content.

返回
  Time of time stamp token of a signature. utc_hour_offset and utc_minite_offset of this time would be ignored.

## ◆ isCA:()

- (BOOL) isCA: |  | (NSData *) | cert |
| required

A callback function used to judge whether a certificate is a CA certificate.

参数

  [in] | cert | Certificate content.

返回
  YES means the certificate is a CA certificate, while NO means not.

## ◆ isIssuerMatchCert:()

- (BOOL) isIssuerMatchCert: |  | (FSCertIssuerPair *) | cert_issuer_pair |
| required

A callback function used to check if an issuer matches a certificate.

参数

  [in] | cert_issuer_pair | A cert-issuer pair. Issuer in this pair is to be checked if it matches the ceritificate in this pair.

返回
  YES means issuer matches the certificate, while NO means not.

## ◆ isOCSPNeedCheck:()

- (BOOL) isOCSPNeedCheck: |  | (NSData *) | ocsp_data |
| required

A callback function used to get flag which decides if need to check OCSP response.

参数

  [in] | ocsp_data | OCSP response content.

返回
  YES means need to check OCSP response, while NO means no need.

## ◆ verifyCRL:crl_data:()

- (FSCertVerifyResult*) verifyCRL: |  | (FSCertIssuerPair *) | cert_issuer_pair
crl_data: |  | (NSData *) | crl_data
| required

A callback function used to verify whether the CRL response matches the certificate and get the verify result for the certificate.

参数

  [in] | cert_issuer_pair | A cert-issuer pair which represents a certificate and an issuer for the certificate.
  [in] | crl_data | CRL content.

返回
  Certificate verify result that obtained from CRL.

## ◆ verifyOCSP:ocsp_data:()

- (FSCertVerifyResult*) verifyOCSP: |  | (FSCertIssuerPair *) | cert_issuer_pair
ocsp_data: |  | (NSData *) | ocsp_data
| required

A callback function used to verify whether the OCSP response matches the certificate and get the verify result for the certificate.

参数

  [in] | cert_issuer_pair | A cert-issuer pair which represents a certificate and an issuer for the certificate.
  [in] | ocsp_data | OCSP content.

返回
  Certificate verify result that obtained from CRL.