com.itextpdf.text.pdf.security
Class OcspClientBouncyCastle

java.lang.Object
  extended by com.itextpdf.text.pdf.security.OcspClientBouncyCastle
All Implemented Interfaces:
OcspClient

public class OcspClientBouncyCastle
extends Object
implements OcspClient

OcspClient implementation using BouncyCastle.

Author:
Paulo Soarees

Constructor Summary
OcspClientBouncyCastle()
           
 
Method Summary
 org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp(X509Certificate checkCert, X509Certificate rootCert, String url)
           
 byte[] getEncoded(X509Certificate checkCert, X509Certificate rootCert, String url)
          Gets an encoded byte array with OCSP validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OcspClientBouncyCastle

public OcspClientBouncyCastle()
Method Detail

getBasicOCSPResp

public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp(X509Certificate checkCert,
                                                                 X509Certificate rootCert,
                                                                 String url)

getEncoded

public byte[] getEncoded(X509Certificate checkCert,
                         X509Certificate rootCert,
                         String url)
Gets an encoded byte array with OCSP validation. The method should not throw an exception.

Specified by:
getEncoded in interface OcspClient
Parameters:
checkCert - to certificate to check
rootCert - the parent certificate
the - url to get the verification. It it's null it will be taken from the check cert or from other implementation specific source
Returns:
a byte array with the validation or null if the validation could not be obtained


Copyright © 2013. All Rights Reserved.