Foxit PDF RDK

Public Member Functions | List of all members
RevocationCallback Class Reference
Inheritance diagram for RevocationCallback:

## Public Member Functions
| GetCertChainFromSignature (signature_content)
| A callback function used to get the cert chain from the signature content. More...
| GetCertValidTimeRange (cert)
| A callback function used to get the time range that represents validity period of a certificate. More...
| GetCRLSignature (crl_data)
| A callback function used to get the signature content from a CRL response. More...
| GetDTSTime (signature_content)
| A callback function used to get the DTS (document time stamp signature) time from signature content. More...
| GetOCSPCertAndIssuer (ocsp_data, trust_cert_chain)
| A callback function used to get the cert-issuer pair of OCSP response. More...
| GetOCSPProducedAtTime (ocsp_data)
| A callback function used to get the produce time of the OCSP response. More...
| GetOCSPSignature (ocsp_data)
| A callback function used to get the signature content from a OCSP response. More...
| GetResponseOnLineForSingleCert (cert_issuer_pair)
| A callback function used to get response online for a certificate. More...
| GetRevocationInfoFromSignatureData (signature_content)
| A callback function used to get the revocation information (in array type) from a signature. More...
| GetTSTSignature (signature_content)
| A callback function used to get the time stamp token content from a signature content. More...
| GetTSTTime (signature_content)
| A callback function used to get the time stamp token time from signature content. More...
| IsCA (cert)
| A callback function used to judge whether a certificate is a CA certificate. More...
| IsIssuerMatchCert (cert_issuer_pair)
| A callback function used to check if an issuer matches a certificate. More...
| IsOCSPNeedCheck (ocsp_data)
| A callback function used to get flag which decides if need to check OCSP response. More...
| Release ()
| A callback function used to release current callback object itself. More...
| VerifyCRL (cert_issuer_pair, crl_data)
| A callback function used to verify whether the CRL response matches the certificate and get the verify result for the certificate. More...
| VerifyOCSP (cert_issuer_pair, ocsp_data)
| A callback function used to verify whether the OCSP response matches the certificate and get the verify result for the certificate. More...
Public Member Functions inherited from NativeObjectWrapper
| constructor (r)
| GetPointerAsNumber ()

## Detailed Description

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

See also
  LTVVerifier

Examples
  /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

## Member Function Documentation

## ◆ GetCertChainFromSignature()

RevocationCallback.GetCertChainFromSignature | ( | signature_content |  | ) |

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

Parameters

  [in] | signature_content | Signature content.

Returns
  An array that represents the cert chain.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetCertValidTimeRange()

RevocationCallback.GetCertValidTimeRange | ( | cert |  | ) |

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

Parameters

  [in] | cert | Certificate content.

Returns
  Time range that represents validity period of the certificate.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetCRLSignature()

RevocationCallback.GetCRLSignature | ( | crl_data |  | ) |

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

Parameters

  [in] | crl_data | CRL response content.

Returns
  Signature content .

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetDTSTime()

RevocationCallback.GetDTSTime | ( | signature_content |  | ) |

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

Parameters

  [in] | signature_content | Signature content.

Returns
  DTS time. utc_hour_offset and utc_minite_offset of this time would be ignored.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetOCSPCertAndIssuer()

RevocationCallback.GetOCSPCertAndIssuer | ( | ocsp_data | ,
|  | trust_cert_chain |
| ) |  |

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

Parameters

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

Returns
  A cert-issuer pair that obtained from OCSP.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetOCSPProducedAtTime()

RevocationCallback.GetOCSPProducedAtTime | ( | ocsp_data |  | ) |

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

Parameters

  [in] | ocsp_data | OCSP response content.

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

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetOCSPSignature()

RevocationCallback.GetOCSPSignature | ( | ocsp_data |  | ) |

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

Parameters

  [in] | ocsp_data | OCSP response content.

Returns
  Signature content.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetResponseOnLineForSingleCert()

RevocationCallback.GetResponseOnLineForSingleCert | ( | cert_issuer_pair |  | ) |

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

Parameters

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

Returns
  Response for the certificate.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetRevocationInfoFromSignatureData()

RevocationCallback.GetRevocationInfoFromSignatureData | ( | signature_content |  | ) |

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

Parameters

  [in] | signature_content | Signature content.

Returns
  Information in array type of revocation information.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetTSTSignature()

RevocationCallback.GetTSTSignature | ( | signature_content |  | ) |

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

Parameters

  [in] | signature_content | Signature content.

Returns
  Time stamp token content.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ GetTSTTime()

RevocationCallback.GetTSTTime | ( | signature_content |  | ) |

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

Parameters

  [in] | signature_content | Signature content.

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

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ IsCA()

RevocationCallback.IsCA | ( | cert |  | ) |

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

Parameters

  [in] | cert | Certificate content.

Returns
  true means the certificate is a CA certificate, while false means not.

## ◆ IsIssuerMatchCert()

RevocationCallback.IsIssuerMatchCert | ( | cert_issuer_pair |  | ) |

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

Parameters

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

Returns
  true means issuer matches the certificate, while false means not.

## ◆ IsOCSPNeedCheck()

RevocationCallback.IsOCSPNeedCheck | ( | ocsp_data |  | ) |

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

Parameters

  [in] | ocsp_data | OCSP response content.

Returns
  true means need to check OCSP response, while false means no need.

## ◆ Release()

RevocationCallback.Release | ( |  | ) |

A callback function used to release current callback object itself.

Returns
  None.

## ◆ VerifyCRL()

RevocationCallback.VerifyCRL | ( | cert_issuer_pair | ,
|  | crl_data |
| ) |  |

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

Parameters

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

Returns
  Certificate verify result that obtained from CRL.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.

## ◆ VerifyOCSP()

RevocationCallback.VerifyOCSP | ( | cert_issuer_pair | ,
|  | ocsp_data |
| ) |  |

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

Parameters

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

Returns
  Certificate verify result that obtained from CRL.

Note
  User can throw exception for errors. Please refer to class Exception and values starting from e_ErrFile.