public final class SSLUtilityFactory extends Object
SSLContext
Modifier and Type | Method and Description |
---|---|
static SSLContext |
createSSLContext()
Returns instance of
SSLContext initialized with the platform's
trust store and key store |
static SSLContext |
createSSLContext(SSLProtocolType sslProtocolType)
Returns instance of
SSLContext initialized with the platform's
trust store and key store and with the specified SSL protocol |
static List |
getKeyManagers()
Returns the platform's Certificate KeyManagers as a List.
|
static List |
getTrustManagers()
Returns the platform's Certificate TrustManagers as a List.
|
public static SSLContext createSSLContext() throws SSLUtilityException
SSLContext
initialized with the platform's
trust store and key storeSSLContext
initialized with the platform's
trust store and key store
By default, the host name will be verified. Any customization like AllowAnyHost should be handled by the client.
SSLUtilityException
public static SSLContext createSSLContext(SSLProtocolType sslProtocolType) throws SSLUtilityException
SSLContext
initialized with the platform's
trust store and key store and with the specified SSL protocolsslProtocolType
- SSLProtocolType
SSLContext
initialized with the platform's
trust store and key store and with the specified SSL protocol
By default, the host name will be verified. Any customization like AllowAnyHost should be handled by the client
SSLUtilityException
public static List getKeyManagers() throws SSLUtilityException
KeyManager
populated with platform's
Certificate KeyManagersSSLUtilityException
public static List getTrustManagers() throws SSLUtilityException
TrustManager
populated with platform's
Certificate TrustManagersSSLUtilityException
Copyright © 2016 Avaya. All Rights Reserved.