final class io.netty.handler.codec.http.websocketx.WebSocketUtil
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.codec.http.websocketx.WebSocketUtil
super_class: java.lang.Object
{
private static final io.netty.util.concurrent.FastThreadLocal<java.security.MessageDigest> MD5;
descriptor: Lio/netty/util/concurrent/FastThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lio/netty/util/concurrent/FastThreadLocal<Ljava/security/MessageDigest;>;
private static final io.netty.util.concurrent.FastThreadLocal<java.security.MessageDigest> SHA1;
descriptor: Lio/netty/util/concurrent/FastThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lio/netty/util/concurrent/FastThreadLocal<Ljava/security/MessageDigest;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.netty.handler.codec.http.websocketx.WebSocketUtil$1
dup
invokespecial io.netty.handler.codec.http.websocketx.WebSocketUtil$1.<init>:()V
putstatic io.netty.handler.codec.http.websocketx.WebSocketUtil.MD5:Lio/netty/util/concurrent/FastThreadLocal;
1: new io.netty.handler.codec.http.websocketx.WebSocketUtil$2
dup
invokespecial io.netty.handler.codec.http.websocketx.WebSocketUtil$2.<init>:()V
putstatic io.netty.handler.codec.http.websocketx.WebSocketUtil.SHA1:Lio/netty/util/concurrent/FastThreadLocal;
2: return
LocalVariableTable:
Start End Slot Name Signature
static byte[] md5(byte[]);
descriptor: ([B)[B
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic io.netty.handler.codec.http.websocketx.WebSocketUtil.MD5:Lio/netty/util/concurrent/FastThreadLocal;
aload 0
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.digest:(Lio/netty/util/concurrent/FastThreadLocal;[B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data [B
MethodParameters:
Name Flags
data
static byte[] sha1(byte[]);
descriptor: ([B)[B
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic io.netty.handler.codec.http.websocketx.WebSocketUtil.SHA1:Lio/netty/util/concurrent/FastThreadLocal;
aload 0
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.digest:(Lio/netty/util/concurrent/FastThreadLocal;[B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data [B
MethodParameters:
Name Flags
data
private static byte[] digest(io.netty.util.concurrent.FastThreadLocal<java.security.MessageDigest>, );
descriptor: (Lio/netty/util/concurrent/FastThreadLocal;[B)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
checkcast java.security.MessageDigest
astore 2
start local 2 1: aload 2
invokevirtual java.security.MessageDigest.reset:()V
2: aload 2
aload 1
invokevirtual java.security.MessageDigest.digest:([B)[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 digestFastThreadLocal Lio/netty/util/concurrent/FastThreadLocal<Ljava/security/MessageDigest;>;
0 3 1 data [B
1 3 2 digest Ljava/security/MessageDigest;
Signature: (Lio/netty/util/concurrent/FastThreadLocal<Ljava/security/MessageDigest;>;[B)[B
MethodParameters:
Name Flags
digestFastThreadLocal
data
static java.lang.String base64(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokestatic io.netty.buffer.Unpooled.wrappedBuffer:([B)Lio/netty/buffer/ByteBuf;
astore 1
start local 1 1: aload 1
invokestatic io.netty.handler.codec.base64.Base64.encode:(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
astore 2
start local 2 2: aload 2
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.toString:(Ljava/nio/charset/Charset;)Ljava/lang/String;
astore 3
start local 3 3: aload 2
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 data [B
1 5 1 encodedData Lio/netty/buffer/ByteBuf;
2 5 2 encoded Lio/netty/buffer/ByteBuf;
3 5 3 encodedString Ljava/lang/String;
MethodParameters:
Name Flags
data
static byte[] randomBytes(int);
descriptor: (I)[B
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iload 0
newarray 8
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 1
iload 2
iconst_0
sipush 255
invokestatic io.netty.handler.codec.http.websocketx.WebSocketUtil.randomNumber:(II)I
i2b
bastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 0
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 size I
1 7 1 bytes [B
2 6 2 index I
MethodParameters:
Name Flags
size
static int randomNumber(int, int);
descriptor: (II)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: invokestatic java.lang.Math.random:()D
iload 1
i2d
dmul
iload 0
i2d
dadd
d2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 minimum I
0 1 1 maximum I
MethodParameters:
Name Flags
minimum
maximum
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/http/websocketx/WebSocketUtil;
}
SourceFile: "WebSocketUtil.java"
NestMembers:
io.netty.handler.codec.http.websocketx.WebSocketUtil$1 io.netty.handler.codec.http.websocketx.WebSocketUtil$2
InnerClasses:
io.netty.handler.codec.http.websocketx.WebSocketUtil$1
io.netty.handler.codec.http.websocketx.WebSocketUtil$2