iText 9.1.0 API
|
Class that allows you to verify a certificate against one or more OCSP responses. More...
Public Member Functions |
|
OCSPVerifier (CertificateVerifier verifier, IList< IBasicOcspResponse > ocsps) | |
Creates an OCSPVerifier instance. More... |
|
virtual void | SetOcspClient (IOcspClient ocspClient) |
Sets OCSP client to provide OCSP responses for verifying of the OCSP signer's certificate (an Authorized Responder). More... |
|
virtual void | SetCrlClient (ICrlClient crlClient) |
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. More... |
|
override IList< VerificationOK > | Verify (IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate) |
Verifies if a valid OCSP response is found for the certificate. More... |
|
virtual bool | Verify (IBasicOcspResponse ocspResp, IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate) |
Verifies a certificate against a single OCSP response. More... |
|
virtual void | IsValidResponse (IBasicOcspResponse ocspResp, IX509Certificate issuerCert, DateTime signDate) |
Verifies if an OCSP response is genuine. More... |
|
virtual bool | IsSignatureValid (IBasicOcspResponse ocspResp, IX509Certificate responderCert) |
Checks if an OCSP response is genuine. More... |
|
virtual IBasicOcspResponse | GetOcspResponse (IX509Certificate signCert, IX509Certificate issuerCert) |
Gets an OCSP response online and returns it without further checking. More... |
|
![]() |
|
RootStoreVerifier (CertificateVerifier verifier) | |
Creates a RootStoreVerifier in a chain of verifiers. More... |
|
virtual void | SetRootStore (List< IX509Certificate > keyStore) |
Sets the Key Store against which a certificate can be checked. More... |
|
override IList< VerificationOK > | Verify (IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate) |
Verifies a single certificate against a key store (if present). More... |
|
![]() |
|
CertificateVerifier (iText.Signatures.CertificateVerifier verifier) | |
Creates the final CertificateVerifier in a chain of verifiers. More... |
|
virtual void | SetOnlineCheckingAllowed (bool onlineCheckingAllowed) |
Decide whether or not online checking is allowed. More... |
|
Package Attributes |
|
IList< IBasicOcspResponse > | ocsps |
The list of iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse OCSP response wrappers. More... |
|
![]() |
|
List< IX509Certificate > | rootStore = null |
A key store against which certificates can be verified. More... |
|
![]() |
|
iText.Signatures.CertificateVerifier | verifier |
The previous CertificateVerifier in the chain of verifiers. More... |
|
bool | onlineCheckingAllowed = true |
Indicates if going online to verify a certificate is allowed. More... |
|
Static Package Attributes |
|
static readonly ILogger | LOGGER |
The Logger instance More... |
|
const String | id_kp_OCSPSigning = "1.3.6.1.5.5.7.3.9" |
Class that allows you to verify a certificate against one or more OCSP responses.
|
inline |
Creates an OCSPVerifier instance.
verifier | the next verifier in the chain |
ocsps | a list of iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse OCSP response wrappers for the certificate verification |
|
inlinevirtual |
Gets an OCSP response online and returns it without further checking.
signCert | the signing certificate |
issuerCert | the issuer certificate |
iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse an OCSP response wrapper.
|
inlinevirtual |
Checks if an OCSP response is genuine.
ocspResp |
iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse the OCSP response wrapper
responderCert | the responder certificate |
|
inlinevirtual |
Verifies if an OCSP response is genuine.
Verifies if an OCSP response is genuine. If it doesn't verify against the issuer certificate and response's certificates, it may verify using a trusted anchor or cert.
ocspResp |
iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse the OCSP response wrapper
issuerCert | the issuer certificate. This certificate is considered trusted and valid by this method. |
signDate | sign date for backwards compatibility |
|
inlinevirtual |
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.
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.
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.
|
inlinevirtual |
Sets OCSP client to provide OCSP responses for verifying of the OCSP signer's certificate (an Authorized Responder).
Sets OCSP client to provide OCSP responses for verifying of the OCSP signer's certificate (an Authorized Responder). Also, should be used in case responder's certificate doesn't have any method of revocation checking.
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.
|
inlinevirtual |
Verifies a certificate against a single OCSP response.
ocspResp |
iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse the OCSP response wrapper for a certificate verification
signCert | the certificate that needs to be checked |
issuerCert | 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.
|
inlinevirtual |
Verifies if a valid OCSP response is found for the certificate.
Verifies if a valid OCSP response is found for the certificate. If this method returns false, it doesn't mean the certificate isn't valid. It means we couldn't verify it against any OCSP response that was available.
signCert | the certificate that needs to be checked |
issuerCert | issuer of the certificate to be checked |
signDate | the date the certificate needs to be valid |
VerificationOK
objects. The list will be empty if the certificate couldn't be verified.
Reimplemented from iText.Signatures.CertificateVerifier.
|
staticpackage |
The Logger instance
|
package |
The list of iText.Commons.Bouncycastle.Asn1.Ocsp.IBasicOcspResponse OCSP response wrappers.