T
- The server specific type to be builtpublic abstract class SslBuilder<T>
extends java.lang.Object
Constructor and Description |
---|
SslBuilder(ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Optional<T> |
build(SslConfiguration ssl) |
abstract java.util.Optional<T> |
build(SslConfiguration ssl,
HttpVersion httpVersion) |
protected javax.net.ssl.KeyManagerFactory |
getKeyManagerFactory(SslConfiguration ssl) |
protected java.util.Optional<java.security.KeyStore> |
getKeyStore(SslConfiguration ssl) |
protected javax.net.ssl.TrustManagerFactory |
getTrustManagerFactory(SslConfiguration ssl) |
protected java.util.Optional<java.security.KeyStore> |
getTrustStore(SslConfiguration ssl) |
protected java.security.KeyStore |
load(java.util.Optional<java.lang.String> optionalType,
java.lang.String resource,
java.util.Optional<java.lang.String> optionalPassword) |
public SslBuilder(ResourceResolver resourceResolver)
resourceResolver
- The resource resolverpublic abstract java.util.Optional<T> build(SslConfiguration ssl)
ssl
- The ssl configurationpublic abstract java.util.Optional<T> build(SslConfiguration ssl, HttpVersion httpVersion)
ssl
- The ssl configurationhttpVersion
- The http versionprotected javax.net.ssl.TrustManagerFactory getTrustManagerFactory(SslConfiguration ssl)
ssl
- The ssl configurationTrustManagerFactory
protected java.util.Optional<java.security.KeyStore> getTrustStore(SslConfiguration ssl) throws java.lang.Exception
ssl
- The ssl configurationKeyStore
java.lang.Exception
- if there is an errorprotected javax.net.ssl.KeyManagerFactory getKeyManagerFactory(SslConfiguration ssl)
ssl
- The ssl configurationKeyManagerFactory
protected java.util.Optional<java.security.KeyStore> getKeyStore(SslConfiguration ssl) throws java.lang.Exception
ssl
- The ssl configurationKeyStore
java.lang.Exception
- if there is an errorprotected java.security.KeyStore load(java.util.Optional<java.lang.String> optionalType, java.lang.String resource, java.util.Optional<java.lang.String> optionalPassword) throws java.lang.Exception
optionalType
- The optional typeresource
- The resourceoptionalPassword
- The optional passwordKeyStore
java.lang.Exception
- if there is an error