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
- Fails to create SSL Contextpublic 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
- Fails to create SSL Contextpublic static List getKeyManagers() throws SSLUtilityException
KeyManager
populated with platform's
Certificate KeyManagersSSLUtilityException
- Fails to get Key Managerpublic static List getTrustManagers() throws SSLUtilityException
TrustManager
populated with platform's
Certificate TrustManagersSSLUtilityException
- Fails to get Trust ManagerCopyright © 2023 Avaya. All rights reserved.