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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<X509CRL, RevocationDataValidator.CrlValidationInfo> -
Constructor Summary
Constructors -
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.Collection
<byte[]> getEncoded
(X509Certificate checkCert, String url) Gets an encoded byte array.
-
Field Details
-
crls
-
-
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 addeddate
-Date
to be linked with the responsecontext
-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 Collection<byte[]> getEncoded(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
.
-