Class ValidationCrlClient
- java.lang.Object
-
- com.itextpdf.signatures.validation.v1.ValidationCrlClient
-
- All Implemented Interfaces:
ICrlClient
public class ValidationCrlClient extends java.lang.Object implements ICrlClient
CRL client which is expected to be used in case CRL responses shall be linked with generation date.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.security.cert.X509CRL,RevocationDataValidator.CrlValidationInfo>
crls
-
Constructor Summary
Constructors Constructor Description ValidationCrlClient()
Create newValidationCrlClient
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCrl(java.security.cert.X509CRL response, java.util.Date date, TimeBasedContext context)
Add CRL response which is linked with generation date.java.util.Map<java.security.cert.X509CRL,RevocationDataValidator.CrlValidationInfo>
getCrls()
Get all the CRL responses linked with generation dates.java.util.Collection<byte[]>
getEncoded(java.security.cert.X509Certificate checkCert, java.lang.String url)
Gets an encoded byte array.
-
-
-
Field Detail
-
crls
private final java.util.Map<java.security.cert.X509CRL,RevocationDataValidator.CrlValidationInfo> crls
-
-
Constructor Detail
-
ValidationCrlClient
public ValidationCrlClient()
Create newValidationCrlClient
instance.
-
-
Method Detail
-
addCrl
public void addCrl(java.security.cert.X509CRL response, java.util.Date date, TimeBasedContext context)
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
public java.util.Map<java.security.cert.X509CRL,RevocationDataValidator.CrlValidationInfo> getCrls()
Get all the CRL responses linked with generation dates.- Returns:
- all the CRL responses linked with generation dates
-
getEncoded
public java.util.Collection<byte[]> getEncoded(java.security.cert.X509Certificate checkCert, java.lang.String url) throws java.security.cert.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:
java.security.cert.CertificateEncodingException
- if an encoding error occurs inX509Certificate
.
-
-