final class sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer implements sun.security.ssl.SSLExtension$ExtensionConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeyConsumer;
public void consume(sun.security.ssl.ConnectionContext, sun.security.ssl.SSLHandshake$HandshakeMessage, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
checkcast sun.security.ssl.ClientHello$ClientHelloMessage
astore 4
start local 4 1: aload 1
checkcast sun.security.ssl.ServerHandshakeContext
astore 5
start local 5 2: aload 5
getfield sun.security.ssl.ServerHandshakeContext.sslConfig:Lsun/security/ssl/SSLConfiguration;
getstatic sun.security.ssl.SSLExtension.CH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
invokevirtual sun.security.ssl.SSLConfiguration.isAvailable:(Lsun/security/ssl/SSLExtension;)Z
ifne 7
3: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 6
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 6
4: ldc "Ignore unavailable pre_shared_key extension"
iconst_0
anewarray java.lang.Object
5: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
6: StackMap locals: sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.ServerHandshakeContext
StackMap stack:
return
7: StackMap locals:
StackMap stack:
new sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec
dup
aload 5
aload 3
invokespecial sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
astore 6
start local 6 8: aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
9: getstatic sun.security.ssl.SSLExtension.PSK_KEY_EXCHANGE_MODES:Lsun/security/ssl/SSLExtension;
10: invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
11: ifne 15
12: aload 5
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
13: ldc "Client sent PSK but not PSK modes, or the PSK extension is not the last extension"
14: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
15: StackMap locals: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec
StackMap stack:
aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.identities:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.binders:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 19
16: aload 5
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
17: ldc "PSK extension has incorrect number of binders"
18: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
19: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.ServerHandshakeContext.isResumption:Z
ifeq 57
20: aload 5
getfield sun.security.ssl.ServerHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.engineGetServerSessionContext:()Ljavax/net/ssl/SSLSessionContext;
21: checkcast sun.security.ssl.SSLSessionContextImpl
astore 7
start local 7 22: iconst_0
istore 8
start local 8 23: aconst_null
astore 9
start local 9 24: aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.identities:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 11
goto 53
StackMap locals: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.ServerHandshakeContext sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec sun.security.ssl.SSLSessionContextImpl int sun.security.ssl.SSLSessionImpl top java.util.Iterator
StackMap stack:
25: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.PreSharedKeyExtension$PskIdentity
astore 10
start local 10 26: aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
arraylength
bipush 32
if_icmpne 28
27: aload 7
aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
invokevirtual sun.security.ssl.SSLSessionContextImpl.get:([B)Lsun/security/ssl/SSLSessionImpl;
astore 9
28: StackMap locals: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.ServerHandshakeContext sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec sun.security.ssl.SSLSessionContextImpl int sun.security.ssl.SSLSessionImpl sun.security.ssl.PreSharedKeyExtension$PskIdentity java.util.Iterator
StackMap stack:
aload 9
ifnonnull 44
29: aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
arraylength
bipush 32
if_icmple 44
30: aload 7
invokevirtual sun.security.ssl.SSLSessionContextImpl.statelessEnabled:()Z
ifeq 44
31: new sun.security.ssl.SessionTicketExtension$SessionTicketSpec
dup
aload 5
aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
invokespecial sun.security.ssl.SessionTicketExtension$SessionTicketSpec.<init>:(Lsun/security/ssl/HandshakeContext;[B)V
32: aload 5
invokevirtual sun.security.ssl.SessionTicketExtension$SessionTicketSpec.decrypt:(Lsun/security/ssl/HandshakeContext;)Ljava/nio/ByteBuffer;
33: astore 12
start local 12 34: aload 12
ifnull 39
35: new sun.security.ssl.SSLSessionImpl
dup
aload 5
aload 12
invokespecial sun.security.ssl.SSLSessionImpl.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
astore 9
36: goto 39
StackMap locals: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.ServerHandshakeContext sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec sun.security.ssl.SSLSessionContextImpl int sun.security.ssl.SSLSessionImpl sun.security.ssl.PreSharedKeyExtension$PskIdentity java.util.Iterator java.nio.ByteBuffer
StackMap stack: java.lang.Exception
37: pop
38: aconst_null
astore 9
39: StackMap locals:
StackMap stack:
aload 12
ifnull 40
aload 9
ifnonnull 44
40: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 44
41: ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 44
42: ldc "Stateless session ticket invalid"
iconst_0
anewarray java.lang.Object
43: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 12 44: StackMap locals:
StackMap stack:
aload 9
ifnull 52
aload 4
aload 5
aload 9
invokestatic sun.security.ssl.PreSharedKeyExtension.canRejoin:(Lsun/security/ssl/ClientHello$ClientHelloMessage;Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/SSLSessionImpl;)Z
ifeq 52
45: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 47
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 47
46: ldc "Resuming session: "
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 9
aastore
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
47: StackMap locals:
StackMap stack:
aload 5
aload 9
putfield sun.security.ssl.ServerHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
48: aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.SH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
49: new sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec
dup
iload 8
invokespecial sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.<init>:(I)V
50: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
51: goto 54
52: StackMap locals:
StackMap stack:
iinc 8 1
end local 10 53: StackMap locals: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.ServerHandshakeContext sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec sun.security.ssl.SSLSessionContextImpl int sun.security.ssl.SSLSessionImpl top java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 25
54: StackMap locals: sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage java.nio.ByteBuffer sun.security.ssl.ClientHello$ClientHelloMessage sun.security.ssl.ServerHandshakeContext sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec sun.security.ssl.SSLSessionContextImpl int sun.security.ssl.SSLSessionImpl
StackMap stack:
iload 8
aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.identities:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpne 57
55: aload 5
iconst_0
putfield sun.security.ssl.ServerHandshakeContext.isResumption:Z
56: aload 5
aconst_null
putfield sun.security.ssl.ServerHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
end local 9 end local 8 end local 7 57: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
58: getstatic sun.security.ssl.SSLExtension.CH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
aload 6
59: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
60: return
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 61 0 this Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeyConsumer;
0 61 1 context Lsun/security/ssl/ConnectionContext;
0 61 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
0 61 3 buffer Ljava/nio/ByteBuffer;
1 61 4 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 61 5 shc Lsun/security/ssl/ServerHandshakeContext;
8 61 6 pskSpec Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeySpec;
22 57 7 sessionCache Lsun/security/ssl/SSLSessionContextImpl;
23 57 8 idIndex I
24 57 9 s Lsun/security/ssl/SSLSessionImpl;
26 53 10 requestedId Lsun/security/ssl/PreSharedKeyExtension$PskIdentity;
34 44 12 b Ljava/nio/ByteBuffer;
Exception table:
from to target type
35 36 37 Class java.io.IOException
35 36 37 Class java.lang.RuntimeException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
buffer
}
SourceFile: "PreSharedKeyExtension.java"
NestHost: sun.security.ssl.PreSharedKeyExtension
InnerClasses:
final ClientHelloMessage = sun.security.ssl.ClientHello$ClientHelloMessage of sun.security.ssl.ClientHello
private final CHPreSharedKeyConsumer = sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeyConsumer of sun.security.ssl.PreSharedKeyExtension
private final CHPreSharedKeySpec = sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec of sun.security.ssl.PreSharedKeyExtension
private final PskIdentity = sun.security.ssl.PreSharedKeyExtension$PskIdentity of sun.security.ssl.PreSharedKeyExtension
private final SHPreSharedKeySpec = sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec of sun.security.ssl.PreSharedKeyExtension
abstract ExtensionConsumer = sun.security.ssl.SSLExtension$ExtensionConsumer of sun.security.ssl.SSLExtension
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final SessionTicketSpec = sun.security.ssl.SessionTicketExtension$SessionTicketSpec of sun.security.ssl.SessionTicketExtension