public class KeyStoreSSLContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyStoreSSLContext.Mode
Connection Mode for TLS.
|
| Modifier and Type | Field and Description |
|---|---|
static Provider |
BC_PROVIDER |
static String |
DEFAULT_KEYSTORE_TYPE |
static String |
DEFAULT_SSL_ENABLED_PROTOCOLS |
static String |
DEFAULT_SSL_KEYMANGER_ALGORITHM |
static String |
DEFAULT_SSL_PROTOCOL |
static String |
DEFAULT_SSL_TRUSTMANAGER_ALGORITHM |
| Constructor and Description |
|---|
KeyStoreSSLContext(KeyStoreSSLContext.Mode mode,
String sslProviderString,
String keyStoreTypeString,
String keyStorePath,
String keyStorePassword,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStorePath,
String trustStorePassword,
boolean requireTrustedClientCertOnConnect,
Set<String> ciphers,
Set<String> protocols) |
| Modifier and Type | Method and Description |
|---|---|
static KeyStoreSSLContext |
createClientKeyStoreSslContext(String sslProviderString,
String keyStoreTypeString,
String keyStorePath,
String keyStorePassword,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStorePath,
String trustStorePassword,
Set<String> ciphers,
Set<String> protocols) |
static SSLContext |
createClientSslContext(String sslProviderString,
String keyStoreTypeString,
String keyStorePath,
String keyStorePassword,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStorePath,
String trustStorePassword,
Set<String> ciphers,
Set<String> protocol) |
static SSLContext |
createClientSslContext(String keyStoreTypeString,
String keyStorePath,
String keyStorePassword,
String trustStoreTypeString,
String trustStorePath,
String trustStorePassword) |
static KeyStoreSSLContext |
createServerKeyStoreSslContext(String sslProviderString,
String keyStoreTypeString,
String keyStorePath,
String keyStorePassword,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStorePath,
String trustStorePassword,
boolean requireTrustedClientCertOnConnect,
Set<String> ciphers,
Set<String> protocols) |
static SSLContext |
createServerSslContext(String sslProviderString,
String keyStoreTypeString,
String keyStorePath,
String keyStorePassword,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStorePath,
String trustStorePassword,
boolean requireTrustedClientCertOnConnect) |
SSLContext |
createSSLContext() |
static org.eclipse.jetty.util.ssl.SslContextFactory.Server |
createSslContextFactory(String sslProviderString,
String keyStoreTypeString,
String keyStore,
String keyStorePassword,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStore,
String trustStorePassword,
boolean requireTrustedClientCertOnConnect,
Set<String> ciphers,
Set<String> protocols,
long certRefreshInSec) |
SSLEngine |
createSSLEngine() |
SSLEngine |
createSSLEngine(String peerHost,
int peerPort) |
SSLContext |
getSslContext() |
public static final String DEFAULT_KEYSTORE_TYPE
public static final String DEFAULT_SSL_PROTOCOL
public static final String DEFAULT_SSL_ENABLED_PROTOCOLS
public static final String DEFAULT_SSL_KEYMANGER_ALGORITHM
public static final String DEFAULT_SSL_TRUSTMANAGER_ALGORITHM
public static final Provider BC_PROVIDER
public KeyStoreSSLContext(KeyStoreSSLContext.Mode mode, String sslProviderString, String keyStoreTypeString, String keyStorePath, String keyStorePassword, boolean allowInsecureConnection, String trustStoreTypeString, String trustStorePath, String trustStorePassword, boolean requireTrustedClientCertOnConnect, Set<String> ciphers, Set<String> protocols)
public SSLContext createSSLContext() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic SSLContext getSslContext()
public SSLEngine createSSLEngine()
public static KeyStoreSSLContext createClientKeyStoreSslContext(String sslProviderString, String keyStoreTypeString, String keyStorePath, String keyStorePassword, boolean allowInsecureConnection, String trustStoreTypeString, String trustStorePath, String trustStorePassword, Set<String> ciphers, Set<String> protocols) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static KeyStoreSSLContext createServerKeyStoreSslContext(String sslProviderString, String keyStoreTypeString, String keyStorePath, String keyStorePassword, boolean allowInsecureConnection, String trustStoreTypeString, String trustStorePath, String trustStorePassword, boolean requireTrustedClientCertOnConnect, Set<String> ciphers, Set<String> protocols) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static SSLContext createServerSslContext(String sslProviderString, String keyStoreTypeString, String keyStorePath, String keyStorePassword, boolean allowInsecureConnection, String trustStoreTypeString, String trustStorePath, String trustStorePassword, boolean requireTrustedClientCertOnConnect) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static SSLContext createClientSslContext(String sslProviderString, String keyStoreTypeString, String keyStorePath, String keyStorePassword, boolean allowInsecureConnection, String trustStoreTypeString, String trustStorePath, String trustStorePassword, Set<String> ciphers, Set<String> protocol) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static SSLContext createClientSslContext(String keyStoreTypeString, String keyStorePath, String keyStorePassword, String trustStoreTypeString, String trustStorePath, String trustStorePassword) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static org.eclipse.jetty.util.ssl.SslContextFactory.Server createSslContextFactory(String sslProviderString, String keyStoreTypeString, String keyStore, String keyStorePassword, boolean allowInsecureConnection, String trustStoreTypeString, String trustStore, String trustStorePassword, boolean requireTrustedClientCertOnConnect, Set<String> ciphers, Set<String> protocols, long certRefreshInSec)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.