com.itextpdf.text.pdf.security
Class CrlClientOffline

java.lang.Object
  extended by com.itextpdf.text.pdf.security.CrlClientOffline
All Implemented Interfaces:
CrlClient

public class CrlClientOffline
extends Object
implements CrlClient

An implementation of the CrlClient that handles offline Certificate Revocation Lists.

Author:
Paulo Soares

Constructor Summary
CrlClientOffline(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
 Collection<byte[]> getEncoded(X509Certificate checkCert, String url)
          Returns the CRL bytes (the parameters are ignored).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(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 Collection<byte[]> getEncoded(X509Certificate checkCert,
                                     String url)
Returns the CRL bytes (the parameters are ignored).

Specified by:
getEncoded in interface CrlClient
Parameters:
checkCert - the certificate from which a CRL URL can be obtained
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:
CrlClient.getEncoded(java.security.cert.X509Certificate, java.lang.String)


Copyright © 2013. All Rights Reserved.