Class SSLContextBuilder


  • public class SSLContextBuilder
    extends java.lang.Object
    • Constructor Detail

      • SSLContextBuilder

        public SSLContextBuilder()
    • Method Detail

      • loadTrustMaterial

        public SSLContextBuilder loadTrustMaterial​(java.security.KeyStore truststore)
                                            throws java.security.KeyStoreException,
                                                   java.security.NoSuchAlgorithmException
        Throws:
        java.security.KeyStoreException
        java.security.NoSuchAlgorithmException
      • loadTrustMaterial

        public SSLContextBuilder loadTrustMaterial​(java.security.KeyStore truststore,
                                                   TrustStrategy trustStrategy)
                                            throws java.security.NoSuchAlgorithmException,
                                                   java.security.KeyStoreException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.KeyStoreException
      • loadKeyMaterial

        public SSLContextBuilder loadKeyMaterial​(java.security.KeyStore keystore,
                                                 char[] keyPassword)
                                          throws java.security.NoSuchAlgorithmException,
                                                 java.security.KeyStoreException,
                                                 java.security.UnrecoverableKeyException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.KeyStoreException
        java.security.UnrecoverableKeyException
      • initSSLContext

        protected void initSSLContext​(javax.net.ssl.SSLContext sslContext,
                                      java.util.Collection<javax.net.ssl.KeyManager> keyManagers,
                                      java.util.Collection<javax.net.ssl.TrustManager> trustManagers)
                               throws java.security.KeyManagementException
        Throws:
        java.security.KeyManagementException
      • build

        public javax.net.ssl.SSLContext build()
                                       throws java.security.NoSuchAlgorithmException,
                                              java.security.KeyManagementException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.KeyManagementException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object