Package org.webpki.crypto
Class KeyStoreVerifier
java.lang.Object
org.webpki.crypto.KeyStoreVerifier
- All Implemented Interfaces:
X509VerifierInterface
Verify certificates using the KeyStore interface.
-
Constructor Summary
ConstructorDescriptionDummy verifier accepting any certificate.KeyStoreVerifier
(KeyStore caCertsKeyStore) Verifier based on a specific keystore. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setTrustedRequired
(boolean flag) boolean
verifyCertificatePath
(X509Certificate[] inCertificatePath) Verify certificate path.
-
Constructor Details
-
KeyStoreVerifier
Verifier based on a specific keystore.- Parameters:
caCertsKeyStore
- Use this keystore for verification
-
KeyStoreVerifier
public KeyStoreVerifier()Dummy verifier accepting any certificate.
-
-
Method Details
-
verifyCertificatePath
Description copied from interface:X509VerifierInterface
Verify certificate path.- Specified by:
verifyCertificatePath
in interfaceX509VerifierInterface
- Parameters:
inCertificatePath
- The path to be validated- Returns:
true
if the path is verified and trusted
-
setTrustedRequired
public void setTrustedRequired(boolean flag) -
getCertificatePath
-
getSignerCertificate
-