
public final class JsseSslUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static javax.net.ssl.SSLContext |
createSSLContext(javax.net.ssl.KeyManager[] keyManagers,
javax.net.ssl.TrustManager[] trustManagers,
java.security.SecureRandom secureRandom,
OptionMap optionMap)
Create a new SSL context, configured from an option map and the given parameters.
|
static javax.net.ssl.SSLContext |
createSSLContext(OptionMap optionMap)
Create a new SSL context, configured from an option map.
|
static javax.net.ssl.SSLEngine |
createSSLEngine(javax.net.ssl.SSLContext sslContext,
OptionMap optionMap,
java.net.InetSocketAddress peerAddress)
Create a new client mode SSL engine, configured from an option map.
|
public static javax.net.ssl.SSLContext createSSLContext(OptionMap optionMap) throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException
optionMap - the SSL context optionsjava.security.NoSuchProviderException - if there is no matching providerjava.security.NoSuchAlgorithmException - if there is no matching algorithmjava.security.KeyManagementException - if the context initialization failspublic static javax.net.ssl.SSLContext createSSLContext(javax.net.ssl.KeyManager[] keyManagers,
javax.net.ssl.TrustManager[] trustManagers,
java.security.SecureRandom secureRandom,
OptionMap optionMap)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.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 optionsjava.security.NoSuchProviderException - if there is no matching providerjava.security.NoSuchAlgorithmException - if there is no matching algorithmjava.security.KeyManagementException - if the context initialization failspublic static javax.net.ssl.SSLEngine createSSLEngine(javax.net.ssl.SSLContext sslContext,
OptionMap optionMap,
java.net.InetSocketAddress peerAddress)
sslContext - the SSL contextoptionMap - the SSL optionspeerAddress - the peer address of the connectionCopyright © 2010 JBoss, a division of Red Hat, Inc.