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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCrl
(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 newValidationCrlClient
instance.
-
-
Method Details
-
addCrl
Add CRL response which is linked with generation date.- Parameters:
-
response
-X509CRL
response to be added -
date
-Date
to be linked with the response -
context
-TimeBasedContext
time 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:
-
getEncoded
in 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
.
-