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.
    • 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:
        SSLContext
        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:
        TrustManager[]
        Throws:
        java.security.GeneralSecurityException - if an errors occurs while loading the TrustManagers
      • getKeyManagers

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