public class CertificateChainValidator extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CertificateChainValidator(ValidatorChainBuilder builder)
Create new instance of
CertificateChainValidator. |
protected CertificateChainValidator(ValidatorChainBuilder builder)
CertificateChainValidator.builder - See ValidatorChainBuilder@Deprecated public CertificateChainValidator addCrlClient(ICrlClient crlClient)
SignatureValidationProperties.addCrlClient(com.itextpdf.signatures.ICrlClient)
or RevocationDataValidator.addCrlClient(com.itextpdf.signatures.ICrlClient). TODO DEVSIX-8398 To be removed.ICrlClient to be used for CRL responses receiving.crlClient - ICrlClient to be used for CRL responses receivingCertificateChainValidator.@Deprecated public CertificateChainValidator addOcspClient(IOcspClient ocpsClient)
SignatureValidationProperties.addOcspClient(com.itextpdf.signatures.IOcspClient)
or RevocationDataValidator.addOcspClient(com.itextpdf.signatures.IOcspClient). TODO DEVSIX-8398 To be removed.IOcspClient to be used for OCSP responses receiving.ocpsClient - IOcspClient to be used for OCSP responses receivingCertificateChainValidator.public ValidationReport validateCertificate(ValidationContext context, X509Certificate certificate, Date validationDate)
context - the validation context in which to validate the certificate chaincertificate - X509Certificate to be validatedvalidationDate - Date against which certificate is expected to be validated. Usually signing
dateValidationReport which contains detailed validation results.public ValidationReport validate(ValidationReport result, ValidationContext context, X509Certificate certificate, Date validationDate)
result - ValidationReport which is populated with detailed validation resultscontext - the context in which to perform the validationcertificate - X509Certificate to be validatedvalidationDate - Date against which certificate is expected to be validated. Usually signing
dateValidationReport which contains both provided and new validation results.Copyright © 1998–2024 Apryse Group NV. All rights reserved.