Class X509KeyStore

java.lang.Object
com.github.tomakehurst.wiremock.http.ssl.X509KeyStore

public class X509KeyStore extends Object
Wrapper class to make it easy to retrieve X509 PrivateKey and certificate chains
  • Constructor Details

    • X509KeyStore

      public X509KeyStore(KeyStore keyStore, char[] password) throws KeyStoreException
      Parameters:
      keyStore - KeyStore to delegate to
      password - used to manage all keys stored in this key store
      Throws:
      KeyStoreException - if the keystore has not been loaded
  • Method Details

    • getCertificateAuthority

      public com.github.tomakehurst.wiremock.http.ssl.CertificateAuthority getCertificateAuthority()
      Returns:
      the first key & chain that represent a certificate authority or null if none found