
classes.io.netty.handler.ssl.SniHandler.class Maven / Gradle / Ivy
???? 2? N ?
N ? N ? ?
?
N ?
N ?
P ? N ? N ? ^
? ? ? N ? 3 ? 3 ? N ?
? ?
? ?
? ?
? ? ? ?
? ?
?
? ?
?
?
? ?
? ? ? ?
? ?
? ? ? ?
? ?
? ? ?
N N ?
3
7
; ?
5 ?
!
5"#$
%& ?' ?( ?) ?* ?+ ?, ?- ?./
0123 Selection InnerClasses AsyncMappingAdapter MAX_SSL_RECORDS I
ConstantValue logger /Lio/netty/util/internal/logging/InternalLogger; EMPTY_SELECTION +Lio/netty/handler/ssl/SniHandler$Selection; mapping Lio/netty/util/AsyncMapping; Signature QLio/netty/util/AsyncMapping; handshakeFailed Z suppressRead readPending selection (Lio/netty/util/Mapping;)V Code LineNumberTable LocalVariableTable this !Lio/netty/handler/ssl/SniHandler; Lio/netty/util/Mapping; LocalVariableTypeTable NLio/netty/util/Mapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>; Q(Lio/netty/util/Mapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>;)V $(Lio/netty/util/DomainNameMapping;)V !Lio/netty/util/DomainNameMapping; ELio/netty/util/DomainNameMapping<+Lio/netty/handler/ssl/SslContext;>; H(Lio/netty/util/DomainNameMapping<+Lio/netty/handler/ssl/SslContext;>;)V (Lio/netty/util/AsyncMapping;)V SLio/netty/util/AsyncMapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>; V(Lio/netty/util/AsyncMapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>;)V hostname ()Ljava/lang/String;
sslContext #()Lio/netty/handler/ssl/SslContext; decode T(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V e ,Lio/netty/handler/ssl/NotSslRecordException; len serverNameLength Ljava/lang/String; serverNameType
extensionType extensionLength packetLength endOffset offset sessionIdLength cipherSuitesLength compressionMethodLength extensionsLength extensionsLimit majorVersion readerIndex
readableBytes command i Ljava/lang/Throwable; writerIndex ctx (Lio/netty/channel/ChannelHandlerContext; in Lio/netty/buffer/ByteBuf; out Ljava/util/List; $Ljava/util/List;
StackMapTable/456
Exceptions7 h(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V select =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V future !Lio/netty/util/concurrent/Future; DLio/netty/util/concurrent/Future;8 replaceHandler V(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/ssl/SniHandler$Selection;)V cause sslEngine Ljavax/net/ssl/SSLEngine;9 bind d(Lio/netty/channel/ChannelHandlerContext;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)V localAddress Ljava/net/SocketAddress; promise !Lio/netty/channel/ChannelPromise; connect |(Lio/netty/channel/ChannelHandlerContext;Ljava/net/SocketAddress;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)V
remoteAddress
disconnect L(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V close
deregister read +(Lio/netty/channel/ChannelHandlerContext;)V write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V msg Ljava/lang/Object; flush
access$102 %(Lio/netty/handler/ssl/SniHandler;Z)Z x0 x1
access$200 w(Lio/netty/handler/ssl/SniHandler;Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/ssl/SniHandler$Selection;)V x2
access$300 $(Lio/netty/handler/ssl/SniHandler;)Z
access$302 ()V
SourceFile SniHandler.java e c ? ? d c 3io/netty/handler/ssl/SniHandler$AsyncMappingAdapter g: g v g h g ? \ ] f ];<= io/netty/util/AsyncMapping ^ _ y ?>? b c5 ?@ ?@ABCDE *io/netty/handler/ssl/NotSslRecordException java/lang/StringBuilder not an SSL/TLS record: FGHIJK z gL ?@MN4OPQRSTUVWKXYZ[\]^_`a ? ? java/lang/Throwable Z [bcd Unexpected client hello packet: efghijklm8ndod )io/netty/handler/ssl/SniHandler$Selectionpq io/netty/handler/ssl/SslContext gr 'io/netty/handler/codec/DecoderException !failed to get the SslContext for ?s gf !io/netty/handler/ssl/SniHandler$1 gtuvwxyz{| io/netty/handler/ssl/SslHandler}~ z??????? ?? ?? ?? ?? ?? ?? ?? ?? io/netty/handler/ssl/SniHandler??? +io/netty/handler/codec/ByteToMessageDecoder 'io/netty/channel/ChannelOutboundHandler &io/netty/channel/ChannelHandlerContext io/netty/buffer/ByteBuf java/util/List java/lang/Exception io/netty/util/concurrent/Future javax/net/ssl/SSLEngine =(Lio/netty/util/Mapping;Lio/netty/handler/ssl/SniHandler$1;)V !io/netty/util/internal/ObjectUtil checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; context !Lio/netty/handler/ssl/SslContext; ()I getUnsignedByte (I)S io/netty/handler/ssl/SslUtils getEncryptedPacketLength (Lio/netty/buffer/ByteBuf;I)I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; io/netty/buffer/ByteBufUtil hexDump -(Lio/netty/buffer/ByteBuf;)Ljava/lang/String; toString (Ljava/lang/String;)V skipBytes (I)Lio/netty/buffer/ByteBuf; fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext; notifyHandshakeFailure @(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V getUnsignedShort (I)I io/netty/util/CharsetUtil UTF_8 Ljava/nio/charset/Charset; 0(IILjava/nio/charset/Charset;)Ljava/lang/String; java/net/IDN toASCII '(Ljava/lang/String;I)Ljava/lang/String; java/util/Locale US Ljava/util/Locale; java/lang/String toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; -io/netty/util/internal/logging/InternalLogger isDebugEnabled ()Z debug *(Ljava/lang/String;Ljava/lang/Throwable;)V executor *()Lio/netty/util/concurrent/EventExecutor; &io/netty/util/concurrent/EventExecutor
newPromise $()Lio/netty/util/concurrent/Promise; map W(Ljava/lang/Object;Lio/netty/util/concurrent/Promise;)Lio/netty/util/concurrent/Future; isDone isSuccess getNow ()Ljava/lang/Object; 6(Lio/netty/handler/ssl/SslContext;Ljava/lang/String;)V ()Ljava/lang/Throwable; ^(Lio/netty/handler/ssl/SniHandler;Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)V addListener S(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future; alloc $()Lio/netty/buffer/ByteBufAllocator; newEngine =(Lio/netty/buffer/ByteBufAllocator;)Ljavax/net/ssl/SSLEngine; pipeline $()Lio/netty/channel/ChannelPipeline; java/lang/Class getName
newHandler <(Ljavax/net/ssl/SSLEngine;)Lio/netty/handler/ssl/SslHandler; io/netty/channel/ChannelPipeline replace x(Lio/netty/channel/ChannelHandler;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline; io/netty/util/ReferenceCountUtil safeRelease (Ljava/lang/Object;)V [(Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; s(Ljava/net/SocketAddress;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; *()Lio/netty/channel/ChannelHandlerContext; U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; 4io/netty/util/internal/logging/InternalLoggerFactory getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; ! N P Q V W X Y Z [ \ ] ^ _ ` a b c d c e c B f ] g h i X *? Y+? ? ? j
J
K k l m ^ n o ^ p ` q g r i P *+? ? j
T U k l m ^ s o ^ t ` u g v i k *? *? ?
*+? ?
? ? j ^ A _ ` k l m ^ _ o ^ w ` x y z i 2 *?
? ? j f k l m { | i 2 *?
? ? j m k l m } ~ i *? ?*? ?,? 66??,? 6d6? ?,? 6? ? {,? 6 ? @*? ? Y? Y? ? ,? ? ? ? :
,,? ? W+
? W+
? !?dd ? ?, ? W?(,`? 6
?,`? "`6? ?`6+`6
d? ? ?,
? 6
``6
,
? "6
``6
,
? 6
``6
,
? "6?
`6? ? ?
d? ? ?,
? "6?
,
? "6?
d? ? q? Y?
d? ? ],
? 6?
? M,
? "6?
d? ? 5,
? #? $:*+? %? &? '? (?
`6
??o? ???9? 0:? *? + ? #? *? Y? ,? ,? ? ? ? - *+? (? 0? ) 1 ?? ) ? ?? ) ? ?? ) ??? )??? ) j &