T - The server specific type to be builtpublic abstract class SslBuilder<T> extends Object
| Constructor and Description |
|---|
SslBuilder(ResourceResolver resourceResolver) |
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<T> |
build(SslConfiguration ssl) |
abstract Optional<T> |
build(SslConfiguration ssl,
HttpVersion httpVersion) |
protected KeyManagerFactory |
getKeyManagerFactory(SslConfiguration ssl) |
protected Optional<KeyStore> |
getKeyStore(SslConfiguration ssl) |
protected TrustManagerFactory |
getTrustManagerFactory(SslConfiguration ssl) |
protected Optional<KeyStore> |
getTrustStore(SslConfiguration ssl) |
protected KeyStore |
load(Optional<String> optionalType,
String resource,
Optional<String> optionalPassword) |
public SslBuilder(ResourceResolver resourceResolver)
resourceResolver - The resource resolverpublic abstract Optional<T> build(SslConfiguration ssl)
ssl - The ssl configurationpublic abstract Optional<T> build(SslConfiguration ssl, HttpVersion httpVersion)
ssl - The ssl configurationhttpVersion - The http version@Nullable protected TrustManagerFactory getTrustManagerFactory(SslConfiguration ssl)
ssl - The ssl configurationTrustManagerFactory, or null for the default JDK trust storeprotected Optional<KeyStore> getTrustStore(SslConfiguration ssl) throws Exception
protected KeyManagerFactory getKeyManagerFactory(SslConfiguration ssl)
ssl - The ssl configurationKeyManagerFactoryprotected Optional<KeyStore> getKeyStore(SslConfiguration ssl) throws Exception