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, Dominic Niemann
  • 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

      public abstract S configureSsl(T client) throws SSLException
      Throws:
      SSLException
    • getSslProperties

      protected HttpClientProperties.Ssl getSslProperties()
    • getBundle

      protected org.springframework.boot.ssl.SslBundle getBundle()
    • 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)