@Override public void initChannel(SocketChannel ch) throws Exception { ch.pipeline().addFirst(new SniHandler(sniConfiguration.buildMapping())); setupHandlers(ch, dispatcher, HTTPS); } };
/** * Constructs new {@link SniConfiguration}. * * @param defaultServerKeystore default keystore to be used when no SNI is specified by the client. */ public SniConfiguration(final SSLContext defaultServerKeystore) { mapping = new DomainNameMappingBuilder<>(createContext(defaultServerKeystore)); }
/** * Adds SNI mapping. * * @param sniHostName SNI Host Name from TLS Extensions. * @param sslContext SSLContext to be associated with given SNI Host Name. * @return <code>this</code> configuration. */ public SniConfiguration addSniMapping(String sniHostName, SSLContext sslContext) { mapping.add(sniHostName, createContext(sslContext)); return this; }
@Override public void initChannel(SocketChannel ch) throws Exception { ch.pipeline().addFirst(new SniHandler(sniConfiguration.buildMapping())); setupHandlers(ch, dispatcher, HTTPS); } };
/** * Constructs new {@link SniConfiguration}. * * @param defaultServerKeystore default keystore to be used when no SNI is specified by the client. */ public SniConfiguration(SSLContext defaultServerKeystore) { mapping = new DomainNameMappingBuilder<>(createContext(defaultServerKeystore)); }
/** * Adds SNI mapping. * * @param sniHostName SNI Host Name from TLS Extensions. * @param sslContext SSLContext to be associated with given SNI Host Name. * @return <code>this</code> configuration. */ public SniConfiguration addSniMapping(String sniHostName, SSLContext sslContext) { mapping.add(sniHostName, createContext(sslContext)); return this; }