Class AbstractSslConfigurer<T,S>
java.lang.Object
org.springframework.cloud.gateway.config.AbstractSslConfigurer<T,S>
- Direct Known Subclasses:
GrpcSslConfigurer, HttpClientSslConfigurer
Base class to configure SSL for component T. Returns an instance S with the resulting
configuration (can be the same as T).
- Author:
- Abel Salgado Romero, Dominic Niemann
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSslConfigurer(HttpClientProperties.Ssl sslProperties, org.springframework.boot.ssl.SslBundles bundles) -
Method Summary
Modifier and TypeMethodDescriptionabstract SconfigureSsl(T client) protected KeyStoreprotected org.springframework.boot.ssl.SslBundleprotected KeyManagerFactoryprotected HttpClientProperties.Sslprotected X509Certificate[]protected voidsetTrustManager(io.netty.handler.ssl.SslContextBuilder sslContextBuilder, X509Certificate... trustedX509Certificates) protected voidsetTrustManager(io.netty.handler.ssl.SslContextBuilder sslContextBuilder, TrustManagerFactory factory)
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
AbstractSslConfigurer
protected AbstractSslConfigurer(HttpClientProperties.Ssl sslProperties, org.springframework.boot.ssl.SslBundles bundles)
-
-
Method Details
-
configureSsl
- Throws:
SSLException
-
getSslProperties
-
getBundle
protected org.springframework.boot.ssl.SslBundle getBundle() -
getTrustedX509CertificatesForTrustManager
-
getKeyManagerFactory
-
createKeyStore
-
setTrustManager
protected void setTrustManager(io.netty.handler.ssl.SslContextBuilder sslContextBuilder, X509Certificate... trustedX509Certificates) -
setTrustManager
protected void setTrustManager(io.netty.handler.ssl.SslContextBuilder sslContextBuilder, TrustManagerFactory factory)
-