Package net.handle.hdllib
Class SSLEngineHelper
- java.lang.Object
-
- net.handle.hdllib.SSLEngineHelper
-
public class SSLEngineHelper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SSLEngineHelper.SocketFactoryWrapper
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SSLEngineHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
ENABLED_SERVER_PROTOCOLS
public static final java.lang.String[] ENABLED_SERVER_PROTOCOLS
-
ENABLED_CLIENT_PROTOCOLS
public static final java.lang.String[] ENABLED_CLIENT_PROTOCOLS
-
ENABLED_CIPHER_SUITES
public static final java.lang.String[] ENABLED_CIPHER_SUITES
-
COMPATIBILITY_CIPHER_SUITES
public static final java.lang.String[] COMPATIBILITY_CIPHER_SUITES
-
-
Method Detail
-
getServerSSLContext
public static javax.net.ssl.SSLContext getServerSSLContext(java.security.cert.X509Certificate cert, java.security.PrivateKey privateKey) throws java.security.KeyManagementException
- Throws:
java.security.KeyManagementException
-
getClientSSLContext
public static javax.net.ssl.SSLContext getClientSSLContext(java.security.PublicKey publicKey) throws java.security.KeyManagementException
- Throws:
java.security.KeyManagementException
-
getClientSSLContext
public static javax.net.ssl.SSLContext getClientSSLContext(byte[] publicKey) throws java.security.KeyManagementException
- Throws:
java.security.KeyManagementException
-
getSSLEngine
public static javax.net.ssl.SSLEngine getSSLEngine(javax.net.ssl.SSLContext sslContext, boolean clientMode)
-
getAllTrustingClientSSLContext
public static javax.net.ssl.SSLContext getAllTrustingClientSSLContext()
-
-