public class SSLUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SSLV3_PROTOCOL |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIdFromSubjectDN(String dn) |
static KeyStore |
getInitializedKeyStore(String storePath,
String storePassword,
String keyStoreType) |
static KeyStore |
getInitializedKeyStore(URL storePath,
String storePassword,
String keyStoreType) |
static void |
removeSSLv3Support(SSLEngine engine) |
static void |
removeSSLv3Support(SSLServerSocket socket) |
static void |
removeSSLv3Support(SSLSocket socket) |
static String |
retrieveIdentity(SSLEngine engine) |
static void |
updateEnabledCipherSuites(SSLEngine engine,
Collection<String> enabledCipherSuites,
Collection<String> disabledCipherSuites) |
static void |
updateEnabledCipherSuites(SSLServerSocket socket,
Collection<String> enabledCipherSuites,
Collection<String> disabledCipherSuites) |
static void |
updateEnabledCipherSuites(SSLSocket socket,
Collection<String> enabledCipherSuites,
Collection<String> disabledCipherSuites) |
static void |
verifyHostname(SSLEngine engine,
String hostnameExpected) |
static void |
verifyHostname(String hostnameExpected,
X509Certificate cert) |
public static final String SSLV3_PROTOCOL
public static void verifyHostname(String hostnameExpected, X509Certificate cert)
public static KeyStore getInitializedKeyStore(String storePath, String storePassword, String keyStoreType) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static KeyStore getInitializedKeyStore(URL storePath, String storePassword, String keyStoreType) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static void removeSSLv3Support(SSLEngine engine)
public static void removeSSLv3Support(SSLSocket socket)
public static void removeSSLv3Support(SSLServerSocket socket)
public static void updateEnabledCipherSuites(SSLEngine engine, Collection<String> enabledCipherSuites, Collection<String> disabledCipherSuites)
public static void updateEnabledCipherSuites(SSLServerSocket socket, Collection<String> enabledCipherSuites, Collection<String> disabledCipherSuites)
public static void updateEnabledCipherSuites(SSLSocket socket, Collection<String> enabledCipherSuites, Collection<String> disabledCipherSuites)
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.