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 chain
public void setRootStore(KeyStore keyStore)
keyStore - a root store
public List<VerificationOK> verify(X509Certificate signCert, X509Certificate issuerCert, Date signDate) throws GeneralSecurityException, IOException
verify in class CertificateVerifier
signCert - the certificate to verify
issuerCert - the issuer certificate
signDate - the date the certificate needs to be valid
VerificationOK objects. The list will be empty if the certificate couldn't be verified.
GeneralSecurityException
IOException
Copyright © 1998–2017 iText Group NV. All rights reserved.