|
iText 8.0.3 API
|
Add verification according to PAdES-LTV (part 4). More...
Public Types |
|
| enum | Level { Level.OCSP, Level.CRL, Level.OCSP_CRL, Level.OCSP_OPTIONAL_CRL } |
| What type of verification to include. More... |
|
| enum | CertificateOption { CertificateOption.SIGNING_CERTIFICATE, CertificateOption.WHOLE_CHAIN, CertificateOption.ALL_CERTIFICATES } |
| Options for how many certificates to include. More... |
|
| enum | CertificateInclusion { CertificateInclusion.YES, CertificateInclusion.NO } |
| Certificate inclusion in the DSS and VRI dictionaries in the CERT and CERTS keys. More... |
|
| enum | RevocationDataNecessity { RevocationDataNecessity.REQUIRED_FOR_SIGNING_CERTIFICATE, RevocationDataNecessity.OPTIONAL } |
| Option to determine whether revocation information is required for the signing certificate. More... |
|
Public Member Functions |
|
| LtvVerification (PdfDocument document) | |
| The verification constructor. More... |
|
| virtual LtvVerification | SetRevocationDataNecessity (LtvVerification.RevocationDataNecessity revocationDataNecessity) |
| Sets RevocationDataNecessity option to specify the necessity of revocation data. More... |
|
| virtual LtvVerification | SetIssuingCertificateRetriever (IIssuingCertificateRetriever issuingCertificateRetriever) |
| Sets IIssuingCertificateRetriever instance needed to get CRL issuer certificates (using AIA extension). More... |
|
| virtual bool | AddVerification (String signatureName, IOcspClient ocsp, ICrlClient crl, LtvVerification.CertificateOption certOption, LtvVerification.Level level, LtvVerification.CertificateInclusion certInclude) |
| Add verification for a particular signature. More... |
|
| virtual bool | AddVerification (String signatureName, ICollection< byte[]> ocsps, ICollection< byte[]> crls, ICollection< byte[]> certs) |
| Adds verification to the signature. More... |
|
| virtual void | Merge () |
| Merges the validation with any validation already in the document or creates a new one. More... |
|
Static Public Member Functions |
|
| static String | ConvertToHex (byte[] bytes) |
| Converts an array of bytes to a String of hexadecimal values More... |
|
Add verification according to PAdES-LTV (part 4).
Options for how many certificates to include.
|
strong |
|
inline |
The verification constructor.
The verification constructor. This class should only be created with PdfStamper.getLtvVerification() otherwise the information will not be added to the Pdf.
| document | The iText.Kernel.Pdf.PdfDocument to apply the validation to. |
|
inlinevirtual |
Adds verification to the signature.
| signatureName | name of the signature |
| ocsps | collection of DER-encoded BasicOCSPResponses |
| crls | collection of DER-encoded CRLs |
| certs | collection of DER-encoded certificates |
|
inlinevirtual |
Add verification for a particular signature.
| signatureName | the signature to validate (it may be a timestamp) |
| ocsp | the interface to get the OCSP |
| crl | the interface to get the CRL |
| certOption | options as to how many certificates to include |
| level | the validation options to include |
| certInclude | certificate inclusion options |
|
inlinestatic |
Converts an array of bytes to a String of hexadecimal values
| bytes | a byte array |
|
inlinevirtual |
Merges the validation with any validation already in the document or creates a new one.
|
inlinevirtual |
Sets IIssuingCertificateRetriever instance needed to get CRL issuer certificates (using AIA extension).
Sets IIssuingCertificateRetriever instance needed to get CRL issuer certificates (using AIA extension).
Default value is DefaultIssuingCertificateRetriever.
| issuingCertificateRetriever |
IIssuingCertificateRetriever instance to set
|
inlinevirtual |
Sets RevocationDataNecessity option to specify the necessity of revocation data.
Sets RevocationDataNecessity option to specify the necessity of revocation data.
Default value is RevocationDataNecessity.OPTIONAL.
| revocationDataNecessity |
RevocationDataNecessity value to set