Class AbstractSslConfigurer<T,S>
- java.lang.Object
-
- org.springframework.cloud.gateway.config.AbstractSslConfigurer<T,S>
-
- Direct Known Subclasses:
GrpcSslConfigurer
,HttpClientSslConfigurer
public abstract class AbstractSslConfigurer<T,S> extends Object
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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Log
logger
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSslConfigurer(HttpClientProperties.Ssl sslProperties)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract S
configureSsl(T client)
protected KeyStore
createKeyStore()
protected KeyManagerFactory
getKeyManagerFactory()
protected HttpClientProperties.Ssl
getSslProperties()
protected X509Certificate[]
getTrustedX509CertificatesForTrustManager()
protected void
setTrustManager(io.netty.handler.ssl.SslContextBuilder sslContextBuilder, X509Certificate... trustedX509Certificates)
protected void
setTrustManager(io.netty.handler.ssl.SslContextBuilder sslContextBuilder, TrustManagerFactory factory)
-
-
-
Constructor Detail
-
AbstractSslConfigurer
protected AbstractSslConfigurer(HttpClientProperties.Ssl sslProperties)
-
-
Method Detail
-
configureSsl
public abstract S configureSsl(T client) throws SSLException
- Throws:
SSLException
-
getSslProperties
protected HttpClientProperties.Ssl getSslProperties()
-
getTrustedX509CertificatesForTrustManager
protected X509Certificate[] getTrustedX509CertificatesForTrustManager()
-
getKeyManagerFactory
protected KeyManagerFactory getKeyManagerFactory()
-
createKeyStore
protected KeyStore 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)
-
-