Class ValidationCrlClient
java.lang.Object
com.itextpdf.signatures.validation.ValidationCrlClient
- All Implemented Interfaces:
-
ICrlClient
CRL client which is expected to be used in case CRL responses shall be linked with generation date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCrl(X509CRL response, Date date, TimeBasedContext context) Add CRL response which is linked with generation date.getCrls()Get all the CRL responses linked with generation dates.getEncoded(X509Certificate checkCert, String url) Gets an encoded byte array.
-
Constructor Details
-
ValidationCrlClient
public ValidationCrlClient()Create newValidationCrlClientinstance.
-
-
Method Details
-
addCrl
Add CRL response which is linked with generation date.- Parameters:
-
response-X509CRLresponse to be added -
date-Dateto be linked with the response -
context-TimeBasedContexttime based context which corresponds to generation date
-
getCrls
Get all the CRL responses linked with generation dates.- Returns:
- all the CRL responses linked with generation dates
-
getEncoded
public CollectiongetEncoded (X509Certificate checkCert, String url) throws CertificateEncodingException Gets an encoded byte array..- Specified by:
-
getEncodedin interfaceICrlClient - Parameters:
-
checkCert- The certificate which a CRL URL can be obtained from. -
url- A CRL url if you don't want to obtain it from the certificate. - Returns:
- A collection of byte array each representing a crl. It may return null or an empty collection.
- Throws:
-
CertificateEncodingException- if an encoding error occurs inX509Certificate.
-