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
private final java.util.concurrent.locks.ReentrantLock d10ManagerLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
aload 1
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
3: aload 0
aload 1
invokevirtual java.security.SecureRandom.nextInt:()I
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieVersion:I
4: aload 0
bipush 32
newarray 8
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
5: aload 0
bipush 32
newarray 8
putfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.legacySecret:[B
6: aload 1
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.cookieSecret:[B
invokevirtual java.security.SecureRandom.nextBytes:([B)V
7: 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
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ssl/HelloCookieManager$D10HelloCookieManager;
0 9 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
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
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[]
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: goto 11
end local 4 end local 3 StackMap locals: sun.security.ssl.HelloCookieManager$D10HelloCookieManager sun.security.ssl.ServerHandshakeContext sun.security.ssl.ClientHello$ClientHelloMessage
StackMap stack: java.lang.Throwable
8: astore 5
9: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
10: aload 5
athrow
start local 3 start local 4 11: StackMap locals: int byte[]
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
12: ldc "SHA-256"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 5
start local 5 13: goto 18
end local 5 StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
14: astore 6
start local 6 15: new java.lang.RuntimeException
dup
16: ldc "MessageDigest algorithm SHA-256 is not available"
aload 6
17: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 start local 5 18: StackMap locals: java.security.MessageDigest
StackMap stack:
aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHelloCookieBytes:()[B
astore 6
start local 6 19: aload 5
aload 6
invokevirtual java.security.MessageDigest.update:([B)V
20: aload 5
aload 4
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 7
start local 7 21: aload 7
iconst_0
iload 3
bipush 24
ishr
sipush 255
iand
i2b
bastore
22: 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 23 0 this Lsun/security/ssl/HelloCookieManager$D10HelloCookieManager;
0 23 1 context Lsun/security/ssl/ServerHandshakeContext;
0 23 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 8 3 version I
11 23 3 version I
3 8 4 secret [B
11 23 4 secret [B
13 14 5 md Ljava/security/MessageDigest;
18 23 5 md Ljava/security/MessageDigest;
15 18 6 nsae Ljava/security/NoSuchAlgorithmException;
19 23 6 helloBytes [B
21 23 7 cookie [B
Exception table:
from to target type
1 8 8 any
12 13 14 Class java.security.NoSuchAlgorithmException
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
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
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 11
end local 4 6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.legacySecret:[B
astore 4
start local 4 7: goto 11
end local 4 StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 5
9: aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
10: aload 5
athrow
start local 4 11: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.ssl.HelloCookieManager$D10HelloCookieManager.d10ManagerLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
12: ldc "SHA-256"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 5
start local 5 13: goto 18
end local 5 StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
14: astore 6
start local 6 15: new java.lang.RuntimeException
dup
16: ldc "MessageDigest algorithm SHA-256 is not available"
aload 6
17: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 start local 5 18: StackMap locals: java.security.MessageDigest
StackMap stack:
aload 2
invokevirtual sun.security.ssl.ClientHello$ClientHelloMessage.getHelloCookieBytes:()[B
astore 6
start local 6 19: aload 5
aload 6
invokevirtual java.security.MessageDigest.update:([B)V
20: aload 5
aload 4
invokevirtual java.security.MessageDigest.digest:([B)[B
astore 7
start local 7 21: aload 7
iconst_0
aload 3
iconst_0
baload
bastore
22: 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 23 0 this Lsun/security/ssl/HelloCookieManager$D10HelloCookieManager;
0 23 1 context Lsun/security/ssl/ServerHandshakeContext;
0 23 2 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
0 23 3 cookie [B
5 6 4 secret [B
7 8 4 secret [B
11 23 4 secret [B
13 14 5 md Ljava/security/MessageDigest;
18 23 5 md Ljava/security/MessageDigest;
15 18 6 nsae Ljava/security/NoSuchAlgorithmException;
19 23 6 helloBytes [B
21 23 7 target [B
Exception table:
from to target type
3 8 8 any
12 13 14 Class java.security.NoSuchAlgorithmException
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