Class CertificateVerifier
- Namespace
- iText.Signatures
- Assembly
- itext.sign.dll
Superclass for a series of certificate verifiers that will typically be used in a chain.
[Obsolete("starting from 8.0.5.iText.Signatures.Validation.V1.CertificateChainValidator should be used instead.")]
public class CertificateVerifier
- Inheritance
-
CertificateVerifier
- Derived
- Inherited Members
Remarks
Superclass for a series of certificate verifiers that will typically
be used in a chain. It wraps another CertificateVerifier
that is the next element in the chain of which the verify()
method will be called.
Constructors
CertificateVerifier(CertificateVerifier)
Creates the final CertificateVerifier in a chain of verifiers.
public CertificateVerifier(CertificateVerifier verifier)
Parameters
verifier
CertificateVerifierthe previous verifier in the chain
Fields
onlineCheckingAllowed
Indicates if going online to verify a certificate is allowed.
protected bool onlineCheckingAllowed
Field Value
verifier
The previous CertificateVerifier in the chain of verifiers.
protected CertificateVerifier verifier
Field Value
Methods
SetOnlineCheckingAllowed(bool)
Decide whether or not online checking is allowed.
public virtual void SetOnlineCheckingAllowed(bool onlineCheckingAllowed)
Parameters
onlineCheckingAllowed
boola boolean indicating whether the certificate can be verified using online verification results.
Verify(IX509Certificate, IX509Certificate, DateTime)
Checks the validity of the certificate, and calls the next verifier in the chain, if any.
public virtual IList<VerificationOK> Verify(IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate)
Parameters
signCert
IX509Certificatethe certificate that needs to be checked
issuerCert
IX509Certificateits issuer
signDate
DateTimethe date the certificate needs to be valid
Returns
- IList<VerificationOK>
a list of
VerificationOK
objects. The list will be empty if the certificate couldn't be verified.