|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnio.ssl.JsseSslUtils
public final class JsseSslUtils
Utility methods for creating JSSE constructs and configuring them via XNIO option maps.
| Method Summary | |
|---|---|
static SSLContext |
createSSLContext(KeyManager[] keyManagers,
TrustManager[] trustManagers,
SecureRandom secureRandom,
OptionMap optionMap)
Create a new SSL context, configured from an option map and the given parameters. |
static SSLContext |
createSSLContext(OptionMap optionMap)
Create a new SSL context, configured from an option map. |
static SSLEngine |
createSSLEngine(SSLContext sslContext,
OptionMap optionMap,
InetSocketAddress peerAddress)
Create a new client mode SSL engine, configured from an option map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SSLContext createSSLContext(OptionMap optionMap)
throws NoSuchProviderException,
NoSuchAlgorithmException,
KeyManagementException
optionMap - the SSL context options
NoSuchProviderException - if there is no matching provider
NoSuchAlgorithmException - if there is no matching algorithm
KeyManagementException - if the context initialization fails
public static SSLContext createSSLContext(KeyManager[] keyManagers,
TrustManager[] trustManagers,
SecureRandom secureRandom,
OptionMap optionMap)
throws NoSuchAlgorithmException,
NoSuchProviderException,
KeyManagementException
keyManagers - the key managers to use, or null to configure from the option maptrustManagers - the trust managers to use, or null to configure from the option mapsecureRandom - the secure RNG to use, or null to choose a system defaultoptionMap - the SSL context options
NoSuchProviderException - if there is no matching provider
NoSuchAlgorithmException - if there is no matching algorithm
KeyManagementException - if the context initialization fails
public static SSLEngine createSSLEngine(SSLContext sslContext,
OptionMap optionMap,
InetSocketAddress peerAddress)
sslContext - the SSL contextoptionMap - the SSL optionspeerAddress - the peer address of the connection
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||