|Modifier and Type||Field and Description|
A key store against which certificates can be verified.
|Constructor and Description|
Creates a RootStoreVerifier in a chain of verifiers.
|Modifier and Type||Method and Description|
Sets the Key Store against which a certificate can be checked.
Verifies a single certificate against a key store (if present).
protected KeyStore rootStore
public RootStoreVerifier(CertificateVerifier verifier)
verifier- the next verifier in the chain
public void setRootStore(KeyStore keyStore)
keyStore- a root store
public List<VerificationOK> verify(X509Certificate signCert, X509Certificate issuerCert, Date signDate) throws GeneralSecurityException, IOException
signCert- the certificate to verify
issuerCert- the issuer certificate
signDate- the date the certificate needs to be valid
VerificationOKobjects. 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
Copyright © 1998–2019 iText Group NV. All rights reserved.