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:
aconst_null
astore 6
start local 6 8: 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
9: goto 12
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
StackMap stack: java.io.IOException
10: astore 7
start local 7 11: aload 5
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.UNEXPECTED_MESSAGE:Lsun/security/ssl/Alert;
aload 7
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 7 12: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
13: getstatic sun.security.ssl.SSLExtension.PSK_KEY_EXCHANGE_MODES:Lsun/security/ssl/SSLExtension;
14: invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
15: ifne 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 "Client sent PSK but not PSK modes, or the PSK extension is not the last extension"
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 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 23
20: aload 5
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
21: ldc "PSK extension has incorrect number of binders"
22: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
23: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.ServerHandshakeContext.isResumption:Z
ifeq 61
24: aload 5
getfield sun.security.ssl.ServerHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.engineGetServerSessionContext:()Ljavax/net/ssl/SSLSessionContext;
25: checkcast sun.security.ssl.SSLSessionContextImpl
astore 7
start local 7 26: iconst_0
istore 8
start local 8 27: aconst_null
astore 9
start local 9 28: aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.identities:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 11
goto 57
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:
29: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.PreSharedKeyExtension$PskIdentity
astore 10
start local 10 30: aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
arraylength
bipush 32
if_icmpne 32
31: 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
32: 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 48
33: aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
arraylength
bipush 32
if_icmple 48
34: aload 7
invokevirtual sun.security.ssl.SSLSessionContextImpl.statelessEnabled:()Z
ifeq 48
35: new sun.security.ssl.SessionTicketExtension$SessionTicketSpec
dup
aload 10
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
invokespecial sun.security.ssl.SessionTicketExtension$SessionTicketSpec.<init>:([B)V
36: aload 5
invokevirtual sun.security.ssl.SessionTicketExtension$SessionTicketSpec.decrypt:(Lsun/security/ssl/HandshakeContext;)Ljava/nio/ByteBuffer;
37: astore 12
start local 12 38: aload 12
ifnull 43
39: 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
40: goto 43
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
41: pop
42: aconst_null
astore 9
43: StackMap locals:
StackMap stack:
aload 12
ifnull 44
aload 9
ifnonnull 48
44: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 48
45: ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 48
46: ldc "Stateless session ticket invalid"
iconst_0
anewarray java.lang.Object
47: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 12 48: StackMap locals:
StackMap stack:
aload 9
ifnull 56
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 56
49: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 51
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 51
50: 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
51: StackMap locals:
StackMap stack:
aload 5
aload 9
putfield sun.security.ssl.ServerHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
52: aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.SH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
53: new sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec
dup
iload 8
invokespecial sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.<init>:(I)V
54: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
55: goto 58
56: StackMap locals:
StackMap stack:
iinc 8 1
end local 10 57: 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 29
58: 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 61
59: aload 5
iconst_0
putfield sun.security.ssl.ServerHandshakeContext.isResumption:Z
60: aload 5
aconst_null
putfield sun.security.ssl.ServerHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
end local 9 end local 8 end local 7 61: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
62: getstatic sun.security.ssl.SSLExtension.CH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
aload 6
63: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
64: 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 65 0 this Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeyConsumer;
0 65 1 context Lsun/security/ssl/ConnectionContext;
0 65 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
0 65 3 buffer Ljava/nio/ByteBuffer;
1 65 4 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 65 5 shc Lsun/security/ssl/ServerHandshakeContext;
8 65 6 pskSpec Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeySpec;
11 12 7 ioe Ljava/io/IOException;
26 61 7 sessionCache Lsun/security/ssl/SSLSessionContextImpl;
27 61 8 idIndex I
28 61 9 s Lsun/security/ssl/SSLSessionImpl;
30 57 10 requestedId Lsun/security/ssl/PreSharedKeyExtension$PskIdentity;
38 48 12 b Ljava/nio/ByteBuffer;
Exception table:
from to target type
8 9 10 Class java.io.IOException
39 40 41 Class java.io.IOException
39 40 41 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