public class SSLEngineHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SSLEngineHelper.SocketFactoryWrapper |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
COMPATIBILITY_CIPHER_SUITES |
static java.lang.String[] |
ENABLED_CIPHER_SUITES |
static java.lang.String[] |
ENABLED_CLIENT_PROTOCOLS |
static java.lang.String[] |
ENABLED_SERVER_PROTOCOLS |
Constructor and Description |
---|
SSLEngineHelper() |
Modifier and Type | Method and Description |
---|---|
static javax.net.ssl.SSLContext |
getAllTrustingClientSSLContext() |
static javax.net.ssl.SSLContext |
getClientSSLContext(byte[] publicKey) |
static javax.net.ssl.SSLContext |
getClientSSLContext(java.security.PublicKey publicKey) |
static javax.net.ssl.SSLContext |
getServerSSLContext(java.security.cert.X509Certificate cert,
java.security.PrivateKey privateKey) |
static javax.net.ssl.SSLEngine |
getSSLEngine(javax.net.ssl.SSLContext sslContext,
boolean clientMode) |
public static final java.lang.String[] ENABLED_SERVER_PROTOCOLS
public static final java.lang.String[] ENABLED_CLIENT_PROTOCOLS
public static final java.lang.String[] ENABLED_CIPHER_SUITES
public static final java.lang.String[] COMPATIBILITY_CIPHER_SUITES
public static javax.net.ssl.SSLContext getServerSSLContext(java.security.cert.X509Certificate cert, java.security.PrivateKey privateKey) throws java.security.KeyManagementException
java.security.KeyManagementException
public static javax.net.ssl.SSLContext getClientSSLContext(java.security.PublicKey publicKey) throws java.security.KeyManagementException
java.security.KeyManagementException
public static javax.net.ssl.SSLContext getClientSSLContext(byte[] publicKey) throws java.security.KeyManagementException
java.security.KeyManagementException
public static javax.net.ssl.SSLEngine getSSLEngine(javax.net.ssl.SSLContext sslContext, boolean clientMode)
public static javax.net.ssl.SSLContext getAllTrustingClientSSLContext()