Enables SNI (Server Name Indication) extension for server side SSL. For clients support SNI, the server could have multiple host name bound on a single IP. The client will send host name in the handshake data so server could decide which certificate to choose for the host name.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static void | |
| protected Future | lookup(ChannelHandlerContext ctx, Buffer clientHello)
Implements abstract io. ClientHello and returns a Future which in turn will
notify the onLookupComplete(ChannelHandlerContext, Future) on completion.
|
| protected abstract Future | lookup(ChannelHandlerContext ctx, String hostname)
Kicks off a lookup for the given SNI value and returns a |
| protected void | onLookupComplete(ChannelHandlerContext ctx, Future<? extends T> future)
Implements abstract io. lookup(ChannelHandlerContext, Buffer) Future.
|
| protected abstract void | onLookupComplete(ChannelHandlerContext ctx, String hostname, Future<? extends T> future)
Called upon completion of the |
| hostname | back to summary |
|---|---|
| private String hostname | |
| AbstractSniHandler | back to summary |
|---|---|
| public AbstractSniHandler() | |
| extractSniHostname | back to summary |
|---|---|
| private static String extractSniHostname(Buffer in) | |
| fireSniCompletionEvent | back to summary |
|---|---|
| private static void fireSniCompletionEvent(ChannelHandlerContext ctx, String hostname, Future<?> future) | |
| lookup | back to summary |
|---|---|
| protected Future Implements abstract io. Doc from io. Kicks off a lookup for the given
struct {
ProtocolVersion client_version;
Random random;
SessionID session_id;
CipherSuite cipher_suites<2..2^16-2>;
CompressionMethod compression_methods<1..2^8-1>;
select (extensions_present) {
case false:
struct {};
case true:
Extension extensions<0..2^16-1>;
};
} ClientHello;
| |
| lookup | back to summary |
|---|---|
| protected abstract Future Kicks off a lookup for the given SNI value and returns a | |
| onLookupComplete | back to summary |
|---|---|
| protected void onLookupComplete(ChannelHandlerContext ctx, Future<? extends T> future) throws Exception Implements abstract io. Doc from io. Called upon completion of the
| |
| onLookupComplete | back to summary |
|---|---|
| protected abstract void onLookupComplete(ChannelHandlerContext ctx, String hostname, Future<? extends T> future) throws Exception Called upon completion of the | |