Package com.itextpdf.text.pdf.security
Interface OcspClient
- All Known Implementing Classes:
OcspClientBouncyCastle
public interface OcspClient
Interface for the OCSP Client
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getEncoded
(X509Certificate checkCert, X509Certificate rootCert, String url) Gets an encoded byte array with OCSP validation.
-
Method Details
-
getEncoded
Gets an encoded byte array with OCSP validation. The method should not throw an exception.- Parameters:
checkCert
- to certificate to checkrootCert
- the parent certificateurl
- 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
-