Package com.itextpdf.text.pdf.security
Class CrlClientOffline
- java.lang.Object
-
- com.itextpdf.text.pdf.security.CrlClientOffline
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<byte[]>
crls
The CRL as a byte array.
-
Constructor Summary
Constructors Constructor Description CrlClientOffline(byte[] crlEncoded)
Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List.CrlClientOffline(java.security.cert.CRL crl)
Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<byte[]>
getEncoded(java.security.cert.X509Certificate checkCert, java.lang.String url)
Returns the CRL bytes (the parameters are ignored).
-
-
-
Constructor Detail
-
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
public CrlClientOffline(java.security.cert.CRL crl)
Creates an instance of a CrlClient in case you have a local cache of the Certificate Revocation List.- Parameters:
crl
- a CRL object
-
-
Method Detail
-
getEncoded
public java.util.Collection<byte[]> getEncoded(java.security.cert.X509Certificate checkCert, java.lang.String url)
Returns the CRL bytes (the parameters are ignored).- Specified by:
getEncoded
in interfaceCrlClient
- Parameters:
checkCert
- the certificate from which a CRL URL can be obtainedurl
- 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:
CrlClient.getEncoded(java.security.cert.X509Certificate, java.lang.String)
-
-