Class SniConfiguration


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

      • mapping

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

      • SniConfiguration

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

      • 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()