Class SniConfiguration

java.lang.Object
org.jboss.resteasy.plugins.server.netty.SniConfiguration

public class SniConfiguration extends Object
TLS/SSL Server Name Indication configuration.
Author:
Sebastian Ɓaskawiec
See Also:
  • Field Details

    • mapping

      protected final io.netty.util.DomainWildcardMappingBuilder<io.netty.handler.ssl.SslContext> mapping
  • Constructor Details

    • SniConfiguration

      public SniConfiguration(SSLContext defaultServerKeystore)
      Constructs new SniConfiguration.
      Parameters:
      defaultServerKeystore - default keystore to be used when no SNI is specified by the client.
  • Method Details

    • addSniMapping

      public SniConfiguration addSniMapping(String sniHostName, SSLContext sslContext)
      Adds SNI mapping.
      Parameters:
      sniHostName - SNI Host Name from TLS Extensions.
      sslContext - SSLContext to be associated with given SNI Host Name.
      Returns:
      this configuration.
    • buildMapping

      protected io.netty.util.Mapping<String,io.netty.handler.ssl.SslContext> buildMapping()