public class SSLUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static TrustManager[] |
DUMMY_TRUST_MANAGERS |
| Constructor and Description |
|---|
SSLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
defaultContext() |
static KeyStore |
defaultKeyStore() |
static KeyStore |
defaultTrustStore() |
static String |
getKeyStoreLocation() |
static char[] |
getKeyStorePassword() |
static String |
getKeyStoreType() |
static String |
getTrustStoreLocation() |
static char[] |
getTrustStorePassword() |
static String |
getTrustStoreType() |
static X509Certificate[] |
getX509CertificateChain(String host,
int port) |
static boolean |
isClientHello(byte firstByte) |
static SSLContext |
newContext(KeyStore keyStore,
char[] keyStorePassword,
String keyAlias,
KeyStore trustStore) |
static KeyStore |
newKeyStore(String type,
String file,
char[] password) |
public static final TrustManager[] DUMMY_TRUST_MANAGERS
public static boolean isClientHello(byte firstByte)
public static X509Certificate[] getX509CertificateChain(String host, int port) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static KeyStore newKeyStore(String type, String file, char[] password) throws SSLException
SSLExceptionpublic static String getKeyStoreType()
public static String getKeyStoreLocation()
public static char[] getKeyStorePassword()
public static KeyStore defaultKeyStore() throws SSLException
SSLExceptionpublic static String getTrustStoreType()
public static String getTrustStoreLocation()
public static char[] getTrustStorePassword()
public static KeyStore defaultTrustStore() throws SSLException
SSLExceptionpublic static SSLContext newContext(KeyStore keyStore, char[] keyStorePassword, String keyAlias, KeyStore trustStore) throws SSLException, GeneralSecurityException
SSLExceptionGeneralSecurityExceptionpublic static SSLContext defaultContext() throws SSLException, GeneralSecurityException
SSLExceptionGeneralSecurityExceptionCopyright © 2021. All rights reserved.