final class sun.security.ssl.SessionTicketExtension$SessionTicketSpec implements sun.security.ssl.SSLExtension$SSLExtensionSpec
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.SessionTicketExtension$SessionTicketSpec
super_class: java.lang.Object
{
private static final int GCM_TAG_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 128
java.nio.ByteBuffer data;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
static final java.nio.ByteBuffer zero;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
newarray 8
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putstatic sun.security.ssl.SessionTicketExtension$SessionTicketSpec.zero:Ljava/nio/ByteBuffer;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic sun.security.ssl.SessionTicketExtension$SessionTicketSpec.zero:Ljava/nio/ByteBuffer;
putfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokespecial sun.security.ssl.SessionTicketExtension$SessionTicketSpec.<init>:(Ljava/nio/ByteBuffer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
void <init>(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 5
2: new javax.net.ssl.SSLProtocolException
dup
3: ldc "SessionTicket buffer too small"
4: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec java.nio.ByteBuffer
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ldc 65536
if_icmple 9
6: new javax.net.ssl.SSLProtocolException
dup
7: new java.lang.StringBuilder
dup
ldc "SessionTicket buffer too large. "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 11 1 buf Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buf
public byte[] encrypt(sun.security.ssl.HandshakeContext, sun.security.ssl.SSLSessionImpl);
descriptor: (Lsun/security/ssl/HandshakeContext;Lsun/security/ssl/SSLSessionImpl;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield sun.security.ssl.HandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 1
invokevirtual sun.security.ssl.SSLSessionImpl.isStatelessable:(Lsun/security/ssl/HandshakeContext;)Z
ifne 2
1: iconst_0
newarray 8
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.security.ssl.SessionTicketExtension$KeyState.getCurrentKey:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SessionTicketExtension$StatelessKey;
astore 4
start local 4 3: bipush 16
newarray 8
astore 5
start local 5 4: aload 1
getfield sun.security.ssl.HandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
astore 6
start local 6 5: aload 6
aload 5
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: ldc "AES/GCM/NoPadding"
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
astore 7
start local 7 7: aload 7
iconst_1
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.key:Ljavax/crypto/SecretKey;
8: new javax.crypto.spec.GCMParameterSpec
dup
sipush 128
aload 5
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
9: invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
10: aload 7
iconst_4
newarray 8
dup
iconst_0
11: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 24
iushr
i2b
bastore
dup
iconst_1
12: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 16
iushr
i2b
bastore
dup
iconst_2
13: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 8
iushr
i2b
bastore
dup
iconst_3
14: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
i2b
bastore
15: invokevirtual javax.crypto.Cipher.updateAAD:([B)V
16: aload 2
invokevirtual sun.security.ssl.SSLSessionImpl.write:()[B
astore 8
start local 8 17: aload 8
arraylength
ifne 20
18: aload 8
19: areturn
20: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec sun.security.ssl.HandshakeContext sun.security.ssl.SSLSessionImpl top sun.security.ssl.SessionTicketExtension$StatelessKey byte[] java.security.SecureRandom javax.crypto.Cipher byte[]
StackMap stack:
aload 7
aload 8
invokevirtual javax.crypto.Cipher.doFinal:([B)[B
astore 3
start local 3 21: aload 3
arraylength
iconst_4
iadd
22: aload 5
arraylength
23: iadd
newarray 8
astore 9
start local 9 24: aload 9
iconst_0
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 24
iushr
i2b
bastore
25: aload 9
iconst_1
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 16
iushr
i2b
bastore
26: aload 9
iconst_2
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 8
iushr
i2b
bastore
27: aload 9
iconst_3
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
i2b
bastore
28: aload 5
iconst_0
aload 9
iconst_4
aload 5
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
29: aload 3
iconst_0
aload 9
30: iconst_4
aload 5
arraylength
iadd
aload 3
arraylength
31: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: aload 9
33: areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 34: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec sun.security.ssl.HandshakeContext sun.security.ssl.SSLSessionImpl
StackMap stack: java.lang.Exception
astore 4
start local 4 35: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 37
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 37
36: new java.lang.StringBuilder
dup
ldc "Encryption failed."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
37: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec sun.security.ssl.HandshakeContext sun.security.ssl.SSLSessionImpl top java.lang.Exception
StackMap stack:
iconst_0
newarray 8
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 38 1 hc Lsun/security/ssl/HandshakeContext;
0 38 2 session Lsun/security/ssl/SSLSessionImpl;
21 34 3 encrypted [B
3 34 4 key Lsun/security/ssl/SessionTicketExtension$StatelessKey;
4 34 5 iv [B
5 34 6 random Ljava/security/SecureRandom;
7 34 7 c Ljavax/crypto/Cipher;
17 34 8 data [B
24 34 9 result [B
35 38 4 e Ljava/lang/Exception;
Exception table:
from to target type
2 19 34 Class java.lang.Exception
20 33 34 Class java.lang.Exception
MethodParameters:
Name Flags
hc
session
java.nio.ByteBuffer decrypt(sun.security.ssl.HandshakeContext);
descriptor: (Lsun/security/ssl/HandshakeContext;)Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 2
start local 2 1: aload 1
iload 2
invokestatic sun.security.ssl.SessionTicketExtension$KeyState.getKey:(Lsun/security/ssl/HandshakeContext;I)Lsun/security/ssl/SessionTicketExtension$StatelessKey;
astore 4
start local 4 2: aload 4
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec sun.security.ssl.HandshakeContext int top sun.security.ssl.SessionTicketExtension$StatelessKey
StackMap stack:
bipush 16
newarray 8
astore 3
start local 3 5: aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
aload 3
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
6: ldc "AES/GCM/NoPadding"
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
astore 5
start local 5 7: aload 5
iconst_2
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.key:Ljavax/crypto/SecretKey;
8: new javax.crypto.spec.GCMParameterSpec
dup
sipush 128
aload 3
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
9: invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
10: aload 5
iconst_4
newarray 8
dup
iconst_0
11: iload 2
bipush 24
iushr
i2b
bastore
dup
iconst_1
12: iload 2
bipush 16
iushr
i2b
bastore
dup
iconst_2
13: iload 2
bipush 8
iushr
i2b
bastore
dup
iconst_3
14: iload 2
i2b
bastore
15: invokevirtual javax.crypto.Cipher.updateAAD:([B)V
16: aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
bipush 16
isub
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 6
start local 6 17: aload 5
aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
aload 6
invokevirtual javax.crypto.Cipher.doFinal:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
pop
18: aload 6
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
19: aload 6
20: areturn
end local 6 end local 5 end local 4 end local 3 end local 2 21: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec sun.security.ssl.HandshakeContext
StackMap stack: java.lang.Exception
astore 4
start local 4 22: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 24
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 24
23: new java.lang.StringBuilder
dup
ldc "Decryption failed."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 4 24: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 25 1 hc Lsun/security/ssl/HandshakeContext;
1 21 2 keyID I
5 21 3 iv [B
2 21 4 key Lsun/security/ssl/SessionTicketExtension$StatelessKey;
7 21 5 c Ljavax/crypto/Cipher;
17 21 6 out Ljava/nio/ByteBuffer;
22 24 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 21 Class java.lang.Exception
4 20 21 Class java.lang.Exception
MethodParameters:
Name Flags
hc
byte[] getEncoded();
descriptor: ()[B
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
newarray 8
astore 1
start local 1 1: aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
1 3 1 out [B
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
ifnonnull 2
1: ldc "<null>"
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
ifne 4
3: ldc "<empty>"
areturn
4: StackMap locals:
StackMap stack:
new java.text.MessageFormat
dup
5: ldc " \"ticket\" : '{'\n{0}\n '}'"
6: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
7: invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 1
start local 1 8: new sun.security.util.HexDumpEncoder
dup
invokespecial sun.security.util.HexDumpEncoder.<init>:()V
astore 2
start local 2 9: iconst_1
anewarray java.lang.Object
dup
iconst_0
10: aload 2
aload 0
getfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
invokevirtual sun.security.util.HexDumpEncoder.encode:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
11: ldc " "
12: invokestatic sun.security.ssl.Utilities.indent:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
13: astore 3
start local 3 14: aload 1
aload 3
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
8 15 1 messageFormat Ljava/text/MessageFormat;
9 15 2 hexEncoder Lsun/security/util/HexDumpEncoder;
14 15 3 messageFields [Ljava/lang/Object;
}
SourceFile: "SessionTicketExtension.java"
NestHost: sun.security.ssl.SessionTicketExtension
InnerClasses:
abstract SSLExtensionSpec = sun.security.ssl.SSLExtension$SSLExtensionSpec of sun.security.ssl.SSLExtension
private final KeyState = sun.security.ssl.SessionTicketExtension$KeyState of sun.security.ssl.SessionTicketExtension
final SessionTicketSpec = sun.security.ssl.SessionTicketExtension$SessionTicketSpec of sun.security.ssl.SessionTicketExtension
final StatelessKey = sun.security.ssl.SessionTicketExtension$StatelessKey of sun.security.ssl.SessionTicketExtension