final class sun.security.ssl.HelloCookieManager
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: sun.security.ssl.HelloCookieManager
  super_class: java.lang.Object
{
  private static long COOKIE_TIMING_WINDOW;
    descriptor: J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private static int COOKIE_MAX_LENGTH_DTLS10;
    descriptor: I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private static int COOKIE_MAX_LENGTH_DTLS12;
    descriptor: I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private final java.security.SecureRandom secureRandom;
    descriptor: Ljava/security/SecureRandom;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.security.MessageDigest cookieDigest;
    descriptor: Ljava/security/MessageDigest;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private int cookieVersion;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private long secretLifetime;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private byte[] cookieSecret;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private int prevCookieVersion;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private byte[] prevCookieSecret;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 40
            ldc 3600000
            putstatic sun.security.ssl.HelloCookieManager.COOKIE_TIMING_WINDOW:J
         1: .line 41
            bipush 32
            putstatic sun.security.ssl.HelloCookieManager.COOKIE_MAX_LENGTH_DTLS10:I
         2: .line 42
            sipush 255
            putstatic sun.security.ssl.HelloCookieManager.COOKIE_MAX_LENGTH_DTLS12:I
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(java.security.SecureRandom);
    descriptor: (Ljava/security/SecureRandom;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // sun.security.ssl.HelloCookieManager this
        start local 1 // java.security.SecureRandom secureRandom
         0: .line 54
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 55
            aload 0 /* this */
            aload 1 /* secureRandom */
            putfield sun.security.ssl.HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
         2: .line 56
            aload 0 /* this */
            ldc "SHA-256"
            invokestatic sun.security.ssl.JsseJce.getMessageDigest:(Ljava/lang/String;)Ljava/security/MessageDigest;
            putfield sun.security.ssl.HelloCookieManager.cookieDigest:Ljava/security/MessageDigest;
         3: .line 58
            aload 0 /* this */
            aload 1 /* secureRandom */
            invokevirtual java.security.SecureRandom.nextInt:()I
            putfield sun.security.ssl.HelloCookieManager.cookieVersion:I
         4: .line 59
            aload 0 /* this */
            lconst_0
            putfield sun.security.ssl.HelloCookieManager.secretLifetime:J
         5: .line 60
            aload 0 /* this */
            aconst_null
            putfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
         6: .line 62
            aload 0 /* this */
            iconst_0
            putfield sun.security.ssl.HelloCookieManager.prevCookieVersion:I
         7: .line 63
            aload 0 /* this */
            aconst_null
            putfield sun.security.ssl.HelloCookieManager.prevCookieSecret:[B
         8: .line 64
            return
        end local 1 // java.security.SecureRandom secureRandom
        end local 0 // sun.security.ssl.HelloCookieManager this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    9     0          this  Lsun/security/ssl/HelloCookieManager;
            0    9     1  secureRandom  Ljava/security/SecureRandom;
    MethodParameters:
              Name  Flags
      secureRandom  

  synchronized byte[] getCookie(sun.security.ssl.HandshakeMessage$ClientHello);
    descriptor: (Lsun/security/ssl/HandshakeMessage$ClientHello;)[B
    flags: (0x0020) ACC_SYNCHRONIZED
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // sun.security.ssl.HelloCookieManager this
        start local 1 // sun.security.ssl.HandshakeMessage$ClientHello clientHelloMsg
         0: .line 68
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.secretLifetime:J
            invokestatic java.lang.System.currentTimeMillis:()J
            lcmp
            ifge 9
         1: .line 69
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
            ifnull 5
         2: .line 70
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            putfield sun.security.ssl.HelloCookieManager.prevCookieVersion:I
         3: .line 71
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
            invokevirtual byte[].clone:()Ljava/lang/Object;
            checkcast byte[]
            putfield sun.security.ssl.HelloCookieManager.prevCookieSecret:[B
         4: .line 72
            goto 6
         5: .line 73
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            bipush 32
            newarray 8
            putfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
         6: .line 76
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            iconst_1
            iadd
            putfield sun.security.ssl.HelloCookieManager.cookieVersion:I
         7: .line 77
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.secureRandom:Ljava/security/SecureRandom;
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
            invokevirtual java.security.SecureRandom.nextBytes:([B)V
         8: .line 78
            aload 0 /* this */
            invokestatic java.lang.System.currentTimeMillis:()J
            getstatic sun.security.ssl.HelloCookieManager.COOKIE_TIMING_WINDOW:J
            ladd
            putfield sun.security.ssl.HelloCookieManager.secretLifetime:J
         9: .line 81
      StackMap locals:
      StackMap stack:
            aload 1 /* clientHelloMsg */
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieDigest:Ljava/security/MessageDigest;
            invokevirtual sun.security.ssl.HandshakeMessage$ClientHello.updateHelloCookie:(Ljava/security/MessageDigest;)V
        10: .line 82
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieDigest:Ljava/security/MessageDigest;
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
            invokevirtual java.security.MessageDigest.digest:([B)[B
            astore 2 /* cookie */
        start local 2 // byte[] cookie
        11: .line 83
            aload 2 /* cookie */
            iconst_0
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            bipush 24
            ishr
            sipush 255
            iand
            i2b
            bastore
        12: .line 84
            aload 2 /* cookie */
            iconst_1
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            bipush 16
            ishr
            sipush 255
            iand
            i2b
            bastore
        13: .line 85
            aload 2 /* cookie */
            iconst_2
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            bipush 8
            ishr
            sipush 255
            iand
            i2b
            bastore
        14: .line 86
            aload 2 /* cookie */
            iconst_3
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            sipush 255
            iand
            i2b
            bastore
        15: .line 88
            aload 2 /* cookie */
            areturn
        end local 2 // byte[] cookie
        end local 1 // sun.security.ssl.HandshakeMessage$ClientHello clientHelloMsg
        end local 0 // sun.security.ssl.HelloCookieManager this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   16     0            this  Lsun/security/ssl/HelloCookieManager;
            0   16     1  clientHelloMsg  Lsun/security/ssl/HandshakeMessage$ClientHello;
           11   16     2          cookie  [B
    MethodParameters:
                Name  Flags
      clientHelloMsg  

  synchronized boolean isValid(sun.security.ssl.HandshakeMessage$ClientHello);
    descriptor: (Lsun/security/ssl/HandshakeMessage$ClientHello;)Z
    flags: (0x0020) ACC_SYNCHRONIZED
    Code:
      stack=3, locals=7, args_size=2
        start local 0 // sun.security.ssl.HelloCookieManager this
        start local 1 // sun.security.ssl.HandshakeMessage$ClientHello clientHelloMsg
         0: .line 93
            aload 1 /* clientHelloMsg */
            getfield sun.security.ssl.HandshakeMessage$ClientHello.cookie:[B
            astore 2 /* cookie */
        start local 2 // byte[] cookie
         1: .line 96
            aload 2 /* cookie */
            ifnull 2
            aload 2 /* cookie */
            arraylength
            bipush 32
            if_icmpeq 3
         2: .line 97
      StackMap locals: byte[]
      StackMap stack:
            iconst_0
            ireturn
         3: .line 100
      StackMap locals:
      StackMap stack:
            aload 2 /* cookie */
            iconst_0
            baload
            sipush 255
            iand
            bipush 24
            ishl
         4: .line 101
            aload 2 /* cookie */
            iconst_1
            baload
            sipush 255
            iand
            bipush 16
            ishl
         5: .line 100
            ior
         6: .line 102
            aload 2 /* cookie */
            iconst_2
            baload
            sipush 255
            iand
            bipush 8
            ishl
         7: .line 100
            ior
         8: .line 103
            aload 2 /* cookie */
            iconst_3
            baload
            sipush 255
            iand
         9: .line 100
            ior
            istore 3 /* version */
        start local 3 // int version
        10: .line 106
            iload 3 /* version */
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieVersion:I
            if_icmpne 13
        11: .line 107
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieSecret:[B
            astore 4 /* secret */
        start local 4 // byte[] secret
        12: .line 108
            goto 17
        end local 4 // byte[] secret
      StackMap locals: int
      StackMap stack:
        13: iload 3 /* version */
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.prevCookieVersion:I
            if_icmpne 16
        14: .line 109
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.prevCookieSecret:[B
            astore 4 /* secret */
        start local 4 // byte[] secret
        15: .line 110
            goto 17
        end local 4 // byte[] secret
        16: .line 111
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        start local 4 // byte[] secret
        17: .line 114
      StackMap locals: byte[]
      StackMap stack:
            aload 1 /* clientHelloMsg */
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieDigest:Ljava/security/MessageDigest;
            invokevirtual sun.security.ssl.HandshakeMessage$ClientHello.updateHelloCookie:(Ljava/security/MessageDigest;)V
        18: .line 115
            aload 0 /* this */
            getfield sun.security.ssl.HelloCookieManager.cookieDigest:Ljava/security/MessageDigest;
            aload 4 /* secret */
            invokevirtual java.security.MessageDigest.digest:([B)[B
            astore 5 /* target */
        start local 5 // byte[] target
        19: .line 117
            iconst_4
            istore 6 /* i */
        start local 6 // int i
        20: goto 24
        21: .line 118
      StackMap locals: byte[] int
      StackMap stack:
            aload 2 /* cookie */
            iload 6 /* i */
            baload
            aload 5 /* target */
            iload 6 /* i */
            baload
            if_icmpeq 23
        22: .line 119
            iconst_0
            ireturn
        23: .line 117
      StackMap locals:
      StackMap stack:
            iinc 6 /* i */ 1
      StackMap locals:
      StackMap stack:
        24: iload 6 /* i */
            bipush 32
            if_icmplt 21
        end local 6 // int i
        25: .line 123
            iconst_1
            ireturn
        end local 5 // byte[] target
        end local 4 // byte[] secret
        end local 3 // int version
        end local 2 // byte[] cookie
        end local 1 // sun.security.ssl.HandshakeMessage$ClientHello clientHelloMsg
        end local 0 // sun.security.ssl.HelloCookieManager this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   26     0            this  Lsun/security/ssl/HelloCookieManager;
            0   26     1  clientHelloMsg  Lsun/security/ssl/HandshakeMessage$ClientHello;
            1   26     2          cookie  [B
           10   26     3         version  I
           12   13     4          secret  [B
           15   16     4          secret  [B
           17   26     4          secret  [B
           19   26     5          target  [B
           20   25     6               i  I
    MethodParameters:
                Name  Flags
      clientHelloMsg  

  static void checkCookie(sun.security.ssl.ProtocolVersion, byte[]);
    descriptor: (Lsun/security/ssl/ProtocolVersion;[B)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // sun.security.ssl.ProtocolVersion protocolVersion
        start local 1 // byte[] cookie
         0: .line 129
            aload 1 /* cookie */
            ifnull 9
            aload 1 /* cookie */
            arraylength
            ifeq 9
         1: .line 131
            aload 0 /* protocolVersion */
            getfield sun.security.ssl.ProtocolVersion.v:I
            getstatic sun.security.ssl.ProtocolVersion.DTLS10:Lsun/security/ssl/ProtocolVersion;
            getfield sun.security.ssl.ProtocolVersion.v:I
            if_icmpne 3
         2: .line 132
            getstatic sun.security.ssl.HelloCookieManager.COOKIE_MAX_LENGTH_DTLS10:I
            pop
         3: .line 135
      StackMap locals:
      StackMap stack:
            aload 1 /* cookie */
            arraylength
            getstatic sun.security.ssl.HelloCookieManager.COOKIE_MAX_LENGTH_DTLS10:I
            if_icmple 9
         4: .line 136
            new javax.net.ssl.SSLProtocolException
            dup
         5: .line 137
            new java.lang.StringBuilder
            dup
            ldc "Invalid HelloVerifyRequest.cookie (length = "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         6: .line 138
            aload 1 /* cookie */
            arraylength
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " bytes)"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         7: .line 137
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         8: .line 136
            invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 143
      StackMap locals:
      StackMap stack:
            return
        end local 1 // byte[] cookie
        end local 0 // sun.security.ssl.ProtocolVersion protocolVersion
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   10     0  protocolVersion  Lsun/security/ssl/ProtocolVersion;
            0   10     1           cookie  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                 Name  Flags
      protocolVersion  
      cookie           
}
SourceFile: "HelloCookieManager.java"
InnerClasses:
  final ClientHello = sun.security.ssl.HandshakeMessage$ClientHello of sun.security.ssl.HandshakeMessage