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