Class SSLConfiguration


  • public class SSLConfiguration
    extends java.lang.Object
    SSL Configuration
    • Constructor Detail

      • SSLConfiguration

        public SSLConfiguration()
        Empty SSLConfiguration constructor for YAMLFactory
      • SSLConfiguration

        public SSLConfiguration​(java.util.List<SSLKey> keystore,
                                java.util.List<SSLKey> truststore)
        SSLConfiguration Constructor
        Parameters:
        keystore -
        truststore -
        Throws:
        java.lang.IllegalArgumentException - if keystore/truststore is null or empty
    • Method Detail

      • getRegistry

        public org.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> getRegistry​(javax.net.ssl.SSLContext sslContext)
                                                                                                         throws java.io.FileNotFoundException
        Parameters:
        sslContext - using a given SSLContext
        Returns:
        the associate Registry for Apache Ssl configuration
        Throws:
        java.io.FileNotFoundException
      • getTruststore

        public java.util.List<SSLKey> getTruststore()
        Returns:
        the truststore
      • getKeystore

        public java.util.List<SSLKey> getKeystore()
        Returns:
        the keystore
      • setTruststore

        public SSLConfiguration setTruststore​(java.util.List<SSLKey> truststore)
        Parameters:
        truststore - the truststore to set
        Returns:
        this
      • setKeystore

        public SSLConfiguration setKeystore​(java.util.List<SSLKey> keystore)
        Parameters:
        keystore - the keystore to set
        Returns:
        this
      • getProtocol

        public java.lang.String getProtocol()
      • setProtocol

        public void setProtocol​(java.lang.String protocol)