Class SSLContextBuilder

    • Method Detail

      • create

        public static SSLContextBuilder create​(KeyConfig privateKeyConfig)
        Creates a builder of the SSLContext.
        Parameters:
        privateKeyConfig - the required private key configuration parameter
        Returns:
        this builder
      • trustConfig

        public SSLContextBuilder trustConfig​(KeyConfig trustConfig)
        Set the trust key configuration to be used to validate certificates.
        Parameters:
        trustConfig - the trust configuration
        Returns:
        an updated builder
      • sessionCacheSize

        public SSLContextBuilder sessionCacheSize​(long sessionCacheSize)
        Set the size of the cache used for storing SSL session objects. 0 to use the default value.
        Parameters:
        sessionCacheSize - the session cache size
        Returns:
        an updated builder
      • sessionTimeout

        public SSLContextBuilder sessionTimeout​(long sessionTimeout)
        Set the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
        Parameters:
        sessionTimeout - the session timeout
        Returns:
        an updated builder