Class SslConfig


  • public class SslConfig
    extends Object
    Class used to configure SSL processing parameters
    Author:
    Rajiv Mordani
    • Constructor Detail

      • SslConfig

        public SslConfig​(String key,
                         String trust)
        Create an instance of SslConfig.
        Parameters:
        key - the location of the keystore file
        trust - the location of the truststore file
    • Method Detail

      • setKeyStore

        public void setKeyStore​(String keyStore)
        Sets the location of the keystore file
        Parameters:
        keyStore - The location of the keystore file
      • setTrustStore

        public void setTrustStore​(String trustStore)
        Sets the location of the truststore file
        Parameters:
        trustStore - The location of the truststore file
      • setKeyPassword

        public void setKeyPassword​(char[] keyPassword)
        Sets the password of the keystore file
        Parameters:
        keyPassword - The password of the keystore file
      • setTrustPassword

        public void setTrustPassword​(char[] trustPassword)
        Sets the password of the truststore file
        Parameters:
        trustPassword - The password of the truststore file
      • setHandshakeTimeout

        public void setHandshakeTimeout​(int timeoutMilliSeconds)
        Sets the timeout within which there must be activity from the client
        Parameters:
        timeoutMilliSeconds - The timeout in milliseconds
      • setAlgorithms

        public void setAlgorithms​(Set<SslType> algorithms)
        Sets the algorithm
        Parameters:
        algorithms -
      • getKeyStore

        public String getKeyStore()
        Gets the location of the keystore file
        Returns:
        the location of the keystore file
      • getTrustStore

        public String getTrustStore()
        Gets the truststore file location
        Returns:
        the location of the truststore file
      • getKeyPassword

        public char[] getKeyPassword()
        Gets the password of the keystore file
        Returns:
        the password of the keystore file
      • getTrustPassword

        public char[] getTrustPassword()
        Gets the password of the truststore file
        Returns:
        the password of the truststore file
      • getHandshakeTimeout

        public int getHandshakeTimeout()
        Gets the timeout within which there must be activity from the client
        Returns:
        the timeout in milliseconds
      • getAlgorithms

        public Set<SslType> getAlgorithms()
        Sets the algorithm
        Returns:
        the algorithm
      • getCertNickname

        public String getCertNickname()
        Gets the nickname of the server certificate in the certificate database
        Returns:
        the certNickname
      • setCertNickname

        public void setCertNickname​(String value)
        Sets the certNickname