final class sun.security.ssl.HelloCookieManager$D10HelloCookieManager extends sun.security.ssl.HelloCookieManager
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.HelloCookieManager$D10HelloCookieManager
super_class: sun.security.ssl.HelloCookieManager
{
final java.security.SecureRandom secureRandom;
descriptor: Ljava/security/SecureRandom;
flags: (0x0010) ACC_FINAL
private int cookieVersion;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] cookieSecret;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] legacySecret;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.security.ssl.HelloCookieManager.<init>:()V
1: aload 0
aload 1
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
2: aload 0
aload 1
invokevirtual java.security.SecureRandom.nextInt:()I
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
3: aload 0
bipush 32
newarray 8
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
4: aload 0
bipush 32
newarray 8
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.legacySecret:[B
5: aload 1
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
iconst_0
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.legacySecret:[B
iconst_0
bipush 32
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/HelloCookieManager$D10HelloCookieManager;
0 8 1 secureRandom Ljava/security/SecureRandom;
MethodParameters:
Name Flags
secureRandom
byte[] createCookie(sun.security.ssl.ServerHandshakeContext, sun.security.ssl.ClientHello$ClientHelloMessage);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/ClientHello$ClientHelloMessage;)[B
flags: (0x0000)
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
dup
astore 5
monitorenter
1: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
istore 3
start local 3 2: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
astore 4
start local 4 3: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
ldc 16777215
iand
ifne 6
4: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
iconst_0
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.legacySecret:[B
iconst_0
bipush 32
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: StackMap locals: int byte[] sun.security.ssl.HelloCookieManager$D10HelloCookieManager
StackMap stack:
aload 0
dup
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
iconst_1
iadd
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
7: aload 5
monitorexit
8: goto 11
end local 4 end local 3 StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage top top sun.security.ssl.HelloCookieManager$D10HelloCookieManager
StackMap stack: java.lang.Throwable
9: aload 5
monitorexit
10: athrow
start local 3 start local 4 11: StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage int byte[]
StackMap stack:
ldc "SHA-256"
invokestatic sun.security.ssl.JsseJce.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 5
start local 5 12: aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHelloCookieBytes:()[B
astore 6
start local 6 13: aload 5
aload 6
invokevirtual java.security.MessageDigest.update:([B)V
14: aload 5
aload 4
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 7
start local 7 15: aload 7
iconst_0
iload 3
bipush 24
ishr
sipush 255
iand
i2b
bastore
16: aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/ssl/HelloCookieManager$D10HelloCookieManager;
0 17 1 context Lsun/security/ssl/ServerHandshakeContext;
0 17 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 9 3 version I
11 17 3 version I
3 9 4 secret [B
11 17 4 secret [B
12 17 5 md Ljava/security/MessageDigest;
13 17 6 helloBytes [B
15 17 7 cookie [B
Exception table:
from to target type
1 8 9 any
9 10 9 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
clientHello
boolean isCookieValid(sun.security.ssl.ServerHandshakeContext, sun.security.ssl.ClientHello$ClientHelloMessage, byte[]);
descriptor: (Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/ClientHello$ClientHelloMessage;[B)Z
flags: (0x0000)
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 1
aload 3
arraylength
bipush 32
if_icmpeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 5
monitorenter
3: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
bipush 24
ishr
sipush 255
iand
aload 3
iconst_0
baload
if_icmpne 6
4: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
astore 4
start local 4 5: goto 7
end local 4 6: StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] top sun.security.ssl.HelloCookieManager$D10HelloCookieManager
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.legacySecret:[B
astore 4
start local 4 7: StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] byte[] sun.security.ssl.HelloCookieManager$D10HelloCookieManager
StackMap stack:
aload 5
monitorexit
8: goto 11
end local 4 StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] top sun.security.ssl.HelloCookieManager$D10HelloCookieManager
StackMap stack: java.lang.Throwable
9: aload 5
monitorexit
10: athrow
start local 4 11: StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage byte[] byte[]
StackMap stack:
ldc "SHA-256"
invokestatic sun.security.ssl.JsseJce.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 5
start local 5 12: aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHelloCookieBytes:()[B
astore 6
start local 6 13: aload 5
aload 6
invokevirtual java.security.MessageDigest.update:([B)V
14: aload 5
aload 4
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 7
start local 7 15: aload 7
iconst_0
aload 3
iconst_0
baload
bastore
16: aload 7
aload 3
invokestatic java.util.Arrays.equals:([B[B)Z
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/ssl/HelloCookieManager$D10HelloCookieManager;
0 17 1 context Lsun/security/ssl/ServerHandshakeContext;
0 17 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
0 17 3 cookie [B
5 6 4 secret [B
7 9 4 secret [B
11 17 4 secret [B
12 17 5 md Ljava/security/MessageDigest;
13 17 6 helloBytes [B
15 17 7 target [B
Exception table:
from to target type
3 8 9 any
9 10 9 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
clientHello
cookie
}
SourceFile: "HelloCookieManager.java"
NestHost: sun.security.ssl.HelloCookieManager
InnerClasses:
final ClientHelloMessage = sun.security.ssl.ClientHello$ClientHelloMessage of sun.security.ssl.ClientHello
private final D10HelloCookieManager = sun.security.ssl.HelloCookieManager$D10HelloCookieManager of sun.security.ssl.HelloCookieManager