|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.net.util.SSLContextUtils
public class SSLContextUtils
General utilities for SSLContext.
Method Summary | |
---|---|
static SSLContext |
createSSLContext(String protocol,
KeyManager[] keyManagers,
TrustManager[] trustManagers)
Create and initialise sn SSLContext. |
static SSLContext |
createSSLContext(String protocol,
KeyManager keyManager,
TrustManager trustManager)
Create and initialise sn SSLContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |