Class KeyStoreVerifier

java.lang.Object
org.webpki.crypto.KeyStoreVerifier
All Implemented Interfaces:
X509VerifierInterface

public class KeyStoreVerifier extends Object implements X509VerifierInterface
Verify certificates using the KeyStore interface.
  • Constructor Details

    • KeyStoreVerifier

      public KeyStoreVerifier(KeyStore caCertsKeyStore)
      Verifier based on a specific keystore.
      Parameters:
      caCertsKeyStore - Use this keystore for verification
    • KeyStoreVerifier

      public KeyStoreVerifier()
      Dummy verifier accepting any certificate.
  • Method Details

    • verifyCertificatePath

      public boolean verifyCertificatePath(X509Certificate[] inCertificatePath)
      Description copied from interface: X509VerifierInterface
      Verify certificate path.
      Specified by:
      verifyCertificatePath in interface X509VerifierInterface
      Parameters:
      inCertificatePath - The path to be validated
      Returns:
      true if the path is verified and trusted
    • setTrustedRequired

      public void setTrustedRequired(boolean flag)
    • getCertificatePath

      public X509Certificate[] getCertificatePath()
    • getSignerCertificate

      public X509Certificate getSignerCertificate()