Interface SSLContextInitializer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.net.ssl.KeyManager[] getKeyManagers()
      Returns the key managers used when creating SSL contexts.
      javax.net.ssl.TrustManager[] getTrustManagers()
      Returns the trust managers used when creating SSL contexts.
      javax.net.ssl.SSLContext initSSLContext​(java.lang.String protocol)
      Creates an initialized SSLContext for the supplied protocol.
      void setTrustManagers​(javax.net.ssl.TrustManager... managers)
      Sets the trust managers.
    • Method Detail

      • initSSLContext

        javax.net.ssl.SSLContext initSSLContext​(java.lang.String protocol)
                                         throws java.security.GeneralSecurityException
        Creates an initialized SSLContext for the supplied protocol.
        Parameters:
        protocol - type to use for SSL
        Returns:
        SSL context
        Throws:
        java.security.GeneralSecurityException - if the SSLContext cannot be created
      • getTrustManagers

        javax.net.ssl.TrustManager[] getTrustManagers()
                                               throws java.security.GeneralSecurityException
        Returns the trust managers used when creating SSL contexts.
        Returns:
        trust managers
        Throws:
        java.security.GeneralSecurityException - if an errors occurs while loading the TrustManagers
      • setTrustManagers

        void setTrustManagers​(javax.net.ssl.TrustManager... managers)
        Sets the trust managers. May be in isolation or in conjunction with other trust material.
        Parameters:
        managers - trust managers
      • getKeyManagers

        javax.net.ssl.KeyManager[] getKeyManagers()
                                           throws java.security.GeneralSecurityException
        Returns the key managers used when creating SSL contexts.
        Returns:
        key managers
        Throws:
        java.security.GeneralSecurityException - if an errors occurs while loading the KeyManagers