public final class SecurityContextBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEYSTORE_JKS |
| Constructor and Description |
|---|
SecurityContextBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static io.netty.handler.ssl.SslContext |
forKeystore(java.io.InputStream keystore,
java.lang.String keystorePassword,
java.lang.String keyManagerAlgorithm)
Builds SslContext using protected keystore file overriding default key manger algorithm.
|
static io.netty.handler.ssl.SslContext |
forKeystore(java.lang.String keystorePath,
java.lang.String keystorePassword)
Builds SslContext using a protected keystore file.
|
static io.netty.handler.ssl.SslContext |
forKeystore(java.lang.String keystorePath,
java.lang.String keystorePassword,
java.lang.String keyManagerAlgorithm)
Builds SslContext using protected keystore file overriding default key manger algorithm.
|
static io.netty.handler.ssl.SslContext |
forKeystoreAndTruststore(java.io.InputStream keystore,
java.lang.String keystorePassword,
java.io.InputStream truststore,
java.lang.String truststorePassword,
java.lang.String keyManagerAlgorithm)
Builds SslContext using protected keystore and truststores, overriding default key manger algorithm.
|
static io.netty.handler.ssl.SslContext |
forKeystoreAndTruststore(java.lang.String keystorePath,
java.lang.String keystorePassword,
java.lang.String truststorePath,
java.lang.String truststorePassword)
Builds SslContext using protected keystore and truststores.
|
static io.netty.handler.ssl.SslContext |
forKeystoreAndTruststore(java.lang.String keystorePath,
java.lang.String keystorePassword,
java.lang.String truststorePath,
java.lang.String truststorePassword,
java.lang.String keyManagerAlgorithm)
Builds SslContext using protected keystore and truststores.
|
public static final java.lang.String KEYSTORE_JKS
public static io.netty.handler.ssl.SslContext forKeystore(java.lang.String keystorePath,
java.lang.String keystorePassword)
throws SecurityContextException
keystorePath - Path for keystore filekeystorePassword - Password for protected keystore fileSecurityContextException - for any troubles building the SslContextpublic static io.netty.handler.ssl.SslContext forKeystore(java.lang.String keystorePath,
java.lang.String keystorePassword,
java.lang.String keyManagerAlgorithm)
throws SecurityContextException
keystorePath - Path for keystore filekeystorePassword - Password for protected keystore filekeyManagerAlgorithm - Algorithm for keyManager used to process keystorefileSecurityContextException - for any troubles building the SslContextpublic static io.netty.handler.ssl.SslContext forKeystore(java.io.InputStream keystore,
java.lang.String keystorePassword,
java.lang.String keyManagerAlgorithm)
throws SecurityContextException
keystore - Keystore inputstream (file, binaries, etc)keystorePassword - Password for protected keystore filekeyManagerAlgorithm - Algorithm for keyManager used to process keystorefileSecurityContextException - for any troubles building the SslContextpublic static io.netty.handler.ssl.SslContext forKeystoreAndTruststore(java.lang.String keystorePath,
java.lang.String keystorePassword,
java.lang.String truststorePath,
java.lang.String truststorePassword)
throws SecurityContextException
keystorePath - Path for keystore filekeystorePassword - Password for protected keystore filetruststorePath - Path for truststore filetruststorePassword - Password for protected truststore fileSecurityContextExceptionpublic static io.netty.handler.ssl.SslContext forKeystoreAndTruststore(java.lang.String keystorePath,
java.lang.String keystorePassword,
java.lang.String truststorePath,
java.lang.String truststorePassword,
java.lang.String keyManagerAlgorithm)
throws SecurityContextException
keystorePath - Path for keystore filekeystorePassword - Password for protected keystore filetruststorePath - Path for truststore filetruststorePassword - Password for protected truststore filekeyManagerAlgorithm - Algorithm for keyManager used to process keystorefileSecurityContextExceptionpublic static io.netty.handler.ssl.SslContext forKeystoreAndTruststore(java.io.InputStream keystore,
java.lang.String keystorePassword,
java.io.InputStream truststore,
java.lang.String truststorePassword,
java.lang.String keyManagerAlgorithm)
throws SecurityContextException
keystore - Keystore inputstream (file, binaries, etc)keystorePassword - Password for protected keystore filetruststore - Truststore inputstream (file, binaries, etc)truststorePassword - Password for protected truststore filekeyManagerAlgorithm - Algorithm for keyManager used to process keystorefileSecurityContextException