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