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>(sun.security.ssl.HandshakeContext, byte[]);
descriptor: (Lsun/security/ssl/HandshakeContext;[B)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokespecial sun.security.ssl.SessionTicketExtension$SessionTicketSpec.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 2 1 hc Lsun/security/ssl/HandshakeContext;
0 2 2 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hc
b
void <init>(sun.security.ssl.HandshakeContext, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 2
ifnonnull 7
2: aload 1
getfield sun.security.ssl.HandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.DECODE_ERROR:Lsun/security/ssl/Alert;
3: new javax.net.ssl.SSLProtocolException
dup
4: ldc "SessionTicket buffer too small"
5: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
6: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
7: StackMap locals: sun.security.ssl.SessionTicketExtension$SessionTicketSpec sun.security.ssl.HandshakeContext java.nio.ByteBuffer
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
ldc 65536
if_icmple 13
8: aload 1
getfield sun.security.ssl.HandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.DECODE_ERROR:Lsun/security/ssl/Alert;
9: new javax.net.ssl.SSLProtocolException
dup
10: new java.lang.StringBuilder
dup
ldc "SessionTicket buffer too large. "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
12: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
13: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield sun.security.ssl.SessionTicketExtension$SessionTicketSpec.data:Ljava/nio/ByteBuffer;
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 15 1 hc Lsun/security/ssl/HandshakeContext;
0 15 2 buf Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hc
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.statelessResumption:Z
ifeq 2
1: aload 1
getfield sun.security.ssl.HandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
invokevirtual sun.security.ssl.SSLSessionImpl.isStatelessable:()Z
ifne 3
2: StackMap locals:
StackMap stack:
iconst_0
newarray 8
areturn
3: 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 4: bipush 16
newarray 8
astore 5
start local 5 5: 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 6: aload 6
aload 5
invokevirtual java.security.SecureRandom.nextBytes:([B)V
7: ldc "AES/GCM/NoPadding"
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
astore 7
start local 7 8: aload 7
iconst_1
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.key:Ljavax/crypto/SecretKey;
9: new javax.crypto.spec.GCMParameterSpec
dup
sipush 128
aload 5
invokespecial javax.crypto.spec.GCMParameterSpec.<init>:(I[B)V
10: invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
11: aload 7
iconst_4
newarray 8
dup
iconst_0
12: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 24
iushr
i2b
bastore
dup
iconst_1
13: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 16
iushr
i2b
bastore
dup
iconst_2
14: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 8
iushr
i2b
bastore
dup
iconst_3
15: aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
i2b
bastore
16: invokevirtual javax.crypto.Cipher.updateAAD:([B)V
17: aload 2
invokevirtual sun.security.ssl.SSLSessionImpl.write:()[B
astore 8
start local 8 18: aload 8
arraylength
ifne 21
19: aload 8
20: areturn
21: 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 22: aload 3
arraylength
iconst_4
iadd
23: aload 5
arraylength
24: iadd
newarray 8
astore 9
start local 9 25: aload 9
iconst_0
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 24
iushr
i2b
bastore
26: aload 9
iconst_1
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 16
iushr
i2b
bastore
27: aload 9
iconst_2
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
bipush 8
iushr
i2b
bastore
28: aload 9
iconst_3
aload 4
getfield sun.security.ssl.SessionTicketExtension$StatelessKey.num:I
i2b
bastore
29: aload 5
iconst_0
aload 9
iconst_4
aload 5
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
30: aload 3
iconst_0
aload 9
31: iconst_4
aload 5
arraylength
iadd
aload 3
arraylength
32: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
33: aload 9
34: areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 35: 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 36: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 38
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 38
37: 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
38: 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 39 0 this Lsun/security/ssl/SessionTicketExtension$SessionTicketSpec;
0 39 1 hc Lsun/security/ssl/HandshakeContext;
0 39 2 session Lsun/security/ssl/SSLSessionImpl;
22 35 3 encrypted [B
4 35 4 key Lsun/security/ssl/SessionTicketExtension$StatelessKey;
5 35 5 iv [B
6 35 6 random Ljava/security/SecureRandom;
8 35 7 c Ljavax/crypto/Cipher;
18 35 8 data [B
25 35 9 result [B
36 39 4 e Ljava/lang/Exception;
Exception table:
from to target type
3 20 35 Class java.lang.Exception
21 34 35 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