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 null
trustManager
- the trust manager, may be null
IOException
- 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 null
trustManagers
- the array of trust managers, may be null
but array entries must not be null
IOException
- this is used to wrap any GeneralSecurityException
that occursCopyright © 2001–2016 The Apache Software Foundation. All rights reserved.