Interface SslStoreBundle

All Known Implementing Classes:
JksSslStoreBundle, PemSslStoreBundle

public interface SslStoreBundle
A bundle of key and trust stores that can be used to establish an SSL connection.
Since:
3.1.0
See Also:
  • Field Details

  • Method Details

    • getKeyStore

      KeyStore getKeyStore()
      Return a key store generated from the trust material or null.
      Returns:
      the key store
    • getKeyStorePassword

      String getKeyStorePassword()
      Return the password for the key in the key store or null.
      Returns:
      the key password
    • getTrustStore

      KeyStore getTrustStore()
      Return a trust store generated from the trust material or null.
      Returns:
      the trust store
    • of

      static SslStoreBundle of(KeyStore keyStore, String keyStorePassword, KeyStore trustStore)
      Factory method to create a new SslStoreBundle instance.
      Parameters:
      keyStore - the key store or null
      keyStorePassword - the key store password or null
      trustStore - the trust store or null
      Returns:
      a new SslStoreBundle instance