public class CertificateChainValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
CertificateChainValidator |
addCrlClient(ICrlClient crlClient)
Add
ICrlClient to be used for CRL responses receiving. |
CertificateChainValidator |
addOcspClient(IOcspClient ocpsClient)
Add
IOcspClient to be used for OCSP responses receiving. |
ValidationReport |
validate(ValidationReport result,
ValidationContext context,
X509Certificate certificate,
Date validationDate)
Validate given certificate using provided validation date and required extensions.
|
ValidationReport |
validateCertificate(ValidationContext context,
X509Certificate certificate,
Date validationDate)
Validate given certificate using provided validation date and required extensions.
|
public CertificateChainValidator addCrlClient(ICrlClient crlClient)
ICrlClient to be used for CRL responses receiving.crlClient - ICrlClient to be used for CRL responses receivingCertificateChainValidatorpublic CertificateChainValidator addOcspClient(IOcspClient ocpsClient)
IOcspClient to be used for OCSP responses receiving.ocpsClient - IOcspClient to be used for OCSP responses receivingCertificateChainValidatorpublic 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 resultspublic 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 resultsCopyright © 1998–2024 Apryse Group NV. All rights reserved.