Package com.itextpdf.signatures
Class CrlClientOffline
java.lang.Object
com.itextpdf.signatures.CrlClientOffline
- All Implemented Interfaces:
ICrlClient
An implementation of the CrlClient that handles offline
Certificate Revocation Lists.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCrlClientOffline
(byte[] crlEncoded) Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List.CrlClientOffline
(CRL crl) Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List. -
Method Summary
Modifier and TypeMethodDescriptionCollection
<byte[]> getEncoded
(X509Certificate checkCert, String url) Returns the CRL bytes (the parameters are ignored).
-
Field Details
-
crls
The CRL as a byte array.
-
-
Constructor Details
-
CrlClientOffline
public CrlClientOffline(byte[] crlEncoded) Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List.- Parameters:
crlEncoded
- the CRL bytes
-
CrlClientOffline
Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List.- Parameters:
crl
- a CRL object
-
-
Method Details
-
getEncoded
Returns the CRL bytes (the parameters are ignored).- 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.
- See Also:
-