public static SSLContext createDefaultSSlContext ( ) throws SSLInitializationException { try { final SSLContext sslcontext = SSLContext . getInstance ( SSL_CONTEXT_TYPE_DEFAULT ) ; sslcontext . init ( null , null , null ) ; return sslcontext ; } catch ( NoSuchAlgorithmException ex ) { throw new SSLInitializationException ( ex . getMessage ( ) , ex ) ; } catch ( KeyManagementException ex ) { throw new SSLInitializationException ( ex . getMessage ( ) , ex ) ; } }
Creates default SSL context .