Class X509KeyStore


  • public class X509KeyStore
    extends java.lang.Object
    Wrapper class to make it easy to retrieve X509 PrivateKey and certificate chains
    • Constructor Summary

      Constructors 
      Constructor Description
      X509KeyStore​(java.security.KeyStore keyStore, char[] password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.tomakehurst.wiremock.http.ssl.CertificateAuthority getCertificateAuthority()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • X509KeyStore

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

      • 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