public class SSLContextUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
createSSLContext(String protocol,
KeyManager[] keyManagers,
TrustManager[] trustManagers)
Create and initialise an SSLContext.
|
static SSLContext |
createSSLContext(String protocol,
KeyManager keyManager,
TrustManager trustManager)
Create and initialise an SSLContext.
|
public static SSLContext createSSLContext(String protocol, KeyManager keyManager, TrustManager trustManager) throws IOException
protocol - the protocol used to instatiate the contextkeyManager - the key manager, may be nulltrustManager - the trust manager, may be nullIOException - this is used to wrap any GeneralSecurityException that occurspublic static SSLContext createSSLContext(String protocol, KeyManager[] keyManagers, TrustManager[] trustManagers) throws IOException
protocol - the protocol used to instatiate the contextkeyManagers - the array of key managers, may be null but array entries must not be nulltrustManagers - the array of trust managers, may be null but array entries must not be nullIOException - this is used to wrap any GeneralSecurityException that occursCopyright © 2001–2017 The Apache Software Foundation. All rights reserved.