public final class Http11SslContextSpec extends AbstractProtocolSslContextSpec<Http11SslContextSpec>
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 Consumer<SslContextBuilder> |
defaultConfiguration() |
static Http11SslContextSpec |
forClient()
Creates a builder for new client-side
SslContext . |
static Http11SslContextSpec |
forServer(File keyCertChainFile,
File keyFile)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(File keyCertChainFile,
File keyFile,
String keyPassword)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(InputStream keyCertChainInputStream,
InputStream keyInputStream)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(InputStream keyCertChainInputStream,
InputStream keyInputStream,
String keyPassword)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(KeyManager keyManager)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(KeyManagerFactory keyManagerFactory)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(PrivateKey key,
Iterable<? extends X509Certificate> keyCertChain)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(PrivateKey key,
String keyPassword,
Iterable<? extends X509Certificate> keyCertChain)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(PrivateKey key,
String keyPassword,
X509Certificate... keyCertChain)
Creates a builder for new server-side
SslContext . |
static Http11SslContextSpec |
forServer(PrivateKey key,
X509Certificate... keyCertChain)
Creates a builder for new server-side
SslContext . |
Http11SslContextSpec |
get() |
configure, sslContext
public static Http11SslContextSpec forClient()
SslContext
.public static Http11SslContextSpec forServer(File keyCertChainFile, File keyFile)
SslContext
.SslContextBuilder.forServer(File, File)
public static Http11SslContextSpec forServer(File keyCertChainFile, File keyFile, String keyPassword)
SslContext
.public static Http11SslContextSpec forServer(InputStream keyCertChainInputStream, InputStream keyInputStream)
SslContext
.public static Http11SslContextSpec forServer(InputStream keyCertChainInputStream, InputStream keyInputStream, String keyPassword)
SslContext
.public static Http11SslContextSpec forServer(KeyManager keyManager)
SslContext
.SslContextBuilder.forServer(KeyManager)
public static Http11SslContextSpec forServer(KeyManagerFactory keyManagerFactory)
SslContext
.public static Http11SslContextSpec forServer(PrivateKey key, Iterable<? extends X509Certificate> keyCertChain)
SslContext
.public static Http11SslContextSpec forServer(PrivateKey key, String keyPassword, Iterable<? extends X509Certificate> keyCertChain)
SslContext
.public static Http11SslContextSpec forServer(PrivateKey key, String keyPassword, X509Certificate... keyCertChain)
SslContext
.public static Http11SslContextSpec forServer(PrivateKey key, X509Certificate... keyCertChain)
SslContext
.public Http11SslContextSpec get()
protected Consumer<SslContextBuilder> defaultConfiguration()
defaultConfiguration
in class AbstractProtocolSslContextSpec<Http11SslContextSpec>