public final class TcpSslContextSpec extends AbstractProtocolSslContextSpec<TcpSslContextSpec>
SslProvider
will be set depending on OpenSsl.isAvailable()
The default configuration is applied prior any other custom configuration.
Modifier and Type | Method and Description |
---|---|
protected java.util.function.Consumer<SslContextBuilder> |
defaultConfiguration() |
static TcpSslContextSpec |
forClient()
Creates a builder for new client-side
SslContext . |
static TcpSslContextSpec |
forServer(File keyCertChainFile,
File keyFile)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(File keyCertChainFile,
File keyFile,
String keyPassword)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(InputStream keyCertChainInputStream,
InputStream keyInputStream)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(InputStream keyCertChainInputStream,
InputStream keyInputStream,
String keyPassword)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(KeyManager keyManager)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(KeyManagerFactory keyManagerFactory)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(PrivateKey key,
Iterable<? extends X509Certificate> keyCertChain)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(PrivateKey key,
String keyPassword,
Iterable<? extends X509Certificate> keyCertChain)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(PrivateKey key,
String keyPassword,
X509Certificate... keyCertChain)
Creates a builder for new server-side
SslContext . |
static TcpSslContextSpec |
forServer(PrivateKey key,
X509Certificate... keyCertChain)
Creates a builder for new server-side
SslContext . |
TcpSslContextSpec |
get() |
configure, sslContext
public static TcpSslContextSpec forClient()
SslContext
.public static TcpSslContextSpec forServer(File keyCertChainFile, File keyFile)
SslContext
.SslContextBuilder.forServer(File, File)
public static TcpSslContextSpec forServer(File keyCertChainFile, File keyFile, String keyPassword)
SslContext
.public static TcpSslContextSpec forServer(InputStream keyCertChainInputStream, InputStream keyInputStream)
SslContext
.public static TcpSslContextSpec forServer(InputStream keyCertChainInputStream, InputStream keyInputStream, String keyPassword)
SslContext
.public static TcpSslContextSpec forServer(KeyManager keyManager)
SslContext
.SslContextBuilder.forServer(KeyManager)
public static TcpSslContextSpec forServer(KeyManagerFactory keyManagerFactory)
SslContext
.public static TcpSslContextSpec forServer(PrivateKey key, Iterable<? extends X509Certificate> keyCertChain)
SslContext
.public static TcpSslContextSpec forServer(PrivateKey key, String keyPassword, Iterable<? extends X509Certificate> keyCertChain)
SslContext
.public static TcpSslContextSpec forServer(PrivateKey key, String keyPassword, X509Certificate... keyCertChain)
SslContext
.public static TcpSslContextSpec forServer(PrivateKey key, X509Certificate... keyCertChain)
SslContext
.public TcpSslContextSpec get()
protected java.util.function.Consumer<SslContextBuilder> defaultConfiguration()
defaultConfiguration
in class AbstractProtocolSslContextSpec<TcpSslContextSpec>