OCSPValidator should be used instead.@Deprecated public class OCSPVerifier extends RootStoreVerifier
| Modifier and Type | Field and Description |
|---|---|
protected static String |
id_kp_OCSPSigning
Deprecated.
|
protected static org.slf4j.Logger |
LOGGER
Deprecated.
The Logger instance
|
protected List<com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp> |
ocsps
Deprecated.
The list of
IBasicOCSPResp OCSP response wrappers. |
rootStoreonlineCheckingAllowed, verifier| Constructor and Description |
|---|
OCSPVerifier(CertificateVerifier verifier,
List<com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp> ocsps)
Deprecated.
Creates an OCSPVerifier instance.
|
| Modifier and Type | Method and Description |
|---|---|
com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp |
getOcspResponse(X509Certificate signCert,
X509Certificate issuerCert)
Deprecated.
Gets an OCSP response online and returns it without further checking.
|
boolean |
isSignatureValid(com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp ocspResp,
Certificate responderCert)
Deprecated.
Checks if an OCSP response is genuine.
|
void |
isValidResponse(com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp ocspResp,
X509Certificate issuerCert,
Date signDate)
Deprecated.
Verifies if an OCSP response is genuine.
|
void |
setCrlClient(ICrlClient crlClient)
Deprecated.
Sets CRL client to provide CRL responses for verifying of the OCSP signer's certificate (an Authorized Responder)
that also should be used in case responder's certificate doesn't have any method of revocation checking.
|
void |
setOcspClient(IOcspClient ocspClient)
Deprecated.
Sets OCSP client to provide OCSP responses for verifying of the OCSP signer's certificate (an Authorized
Responder).
|
boolean |
verify(com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp ocspResp,
X509Certificate signCert,
X509Certificate issuerCert,
Date signDate)
Deprecated.
Verifies a certificate against a single OCSP response.
|
List<VerificationOK> |
verify(X509Certificate signCert,
X509Certificate issuerCert,
Date signDate)
Deprecated.
Verifies if a valid OCSP response is found for the certificate.
|
setRootStoresetOnlineCheckingAllowedprotected static final org.slf4j.Logger LOGGER
protected static final String id_kp_OCSPSigning
protected List<com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp> ocsps
IBasicOCSPResp OCSP response wrappers.public OCSPVerifier(CertificateVerifier verifier, List<com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp> ocsps)
verifier - the next verifier in the chainocsps - a list of IBasicOCSPResp OCSP response wrappers for the certificate verificationpublic void setOcspClient(IOcspClient ocspClient)
See RFC6960 4.2.2.2.1. Revocation Checking of an Authorized Responder.
Optional. Default one is OcspClientBouncyCastle.
ocspClient - IOcspClient to provide an Authorized Responder revocation data.public void setCrlClient(ICrlClient crlClient)
See RFC6960 4.2.2.2.1. Revocation Checking of an Authorized Responder.
Optional. Default one is CrlClientOnline.
crlClient - ICrlClient to provide an Authorized Responder revocation data.public List<VerificationOK> verify(X509Certificate signCert, X509Certificate issuerCert, Date signDate) throws GeneralSecurityException
verify in class RootStoreVerifiersignCert - the certificate that needs to be checkedissuerCert - issuer of the certificate to be checkedsignDate - the date the certificate needs to be validVerificationOK objects.
The list will be empty if the certificate couldn't be verified.GeneralSecurityException - thrown if the certificate has expired, isn't valid yet, or if an exception has been thrown in Certificate#verify.RootStoreVerifier.verify(java.security.cert.X509Certificate,
java.security.cert.X509Certificate, java.util.Date)public boolean verify(com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp ocspResp,
X509Certificate signCert,
X509Certificate issuerCert,
Date signDate)
throws GeneralSecurityException
ocspResp - IBasicOCSPResp the OCSP response wrapper for a certificate verificationsignCert - the certificate that needs to be checkedissuerCert - the certificate that issued signCert – immediate parent. This certificate is considered
trusted and valid by this method.signDate - sign date (or the date the certificate needs to be valid)true in case check is successful, false otherwise.GeneralSecurityException - if OCSP response verification cannot be done or failed.public void isValidResponse(com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp ocspResp,
X509Certificate issuerCert,
Date signDate)
throws GeneralSecurityException
ocspResp - IBasicOCSPResp the OCSP response wrapperissuerCert - the issuer certificate. This certificate is considered trusted and valid by this method.signDate - sign date for backwards compatibilityGeneralSecurityException - if OCSP response verification cannot be done or failed.public boolean isSignatureValid(com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp ocspResp,
Certificate responderCert)
ocspResp - IBasicOCSPResp the OCSP response wrapperresponderCert - the responder certificatepublic com.itextpdf.commons.bouncycastle.cert.ocsp.IBasicOCSPResp getOcspResponse(X509Certificate signCert, X509Certificate issuerCert)
signCert - the signing certificateissuerCert - the issuer certificateIBasicOCSPResp an OCSP response wrapper.Copyright © 1998–2025 Apryse Group NV. All rights reserved.