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=12, 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 43
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: aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.identities:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
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 top java.util.Iterator
StackMap stack:
28: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.PreSharedKeyExtension$PskIdentity
astore 9
start local 9 29: aload 7
aload 9
getfield sun.security.ssl.PreSharedKeyExtension$PskIdentity.identity:[B
invokevirtual sun.security.ssl.SSLSessionContextImpl.get:([B)Lsun/security/ssl/SSLSessionImpl;
astore 11
start local 11 30: aload 11
ifnull 38
aload 4
aload 5
aload 11
invokestatic sun.security.ssl.PreSharedKeyExtension.canRejoin:(Lsun/security/ssl/ClientHello$ClientHelloMessage;Lsun/security/ssl/ServerHandshakeContext;Lsun/security/ssl/SSLSessionImpl;)Z
ifeq 38
31: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 33
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 33
32: ldc "Resuming session: "
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 11
aastore
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
33: 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.PreSharedKeyExtension$PskIdentity java.util.Iterator sun.security.ssl.SSLSessionImpl
StackMap stack:
aload 5
aload 11
putfield sun.security.ssl.ServerHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
34: aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
getstatic sun.security.ssl.SSLExtension.SH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
35: new sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec
dup
iload 8
invokespecial sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.<init>:(I)V
36: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
37: goto 40
38: StackMap locals:
StackMap stack:
iinc 8 1
end local 11 end local 9 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 top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 28
40: 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
StackMap stack:
iload 8
aload 6
getfield sun.security.ssl.PreSharedKeyExtension$CHPreSharedKeySpec.identities:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpne 43
41: aload 5
iconst_0
putfield sun.security.ssl.ServerHandshakeContext.isResumption:Z
42: aload 5
aconst_null
putfield sun.security.ssl.ServerHandshakeContext.resumingSession:Lsun/security/ssl/SSLSessionImpl;
end local 8 end local 7 43: StackMap locals:
StackMap stack:
aload 5
getfield sun.security.ssl.ServerHandshakeContext.handshakeExtensions:Ljava/util/Map;
44: getstatic sun.security.ssl.SSLExtension.CH_PRE_SHARED_KEY:Lsun/security/ssl/SSLExtension;
aload 6
45: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
46: 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 47 0 this Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeyConsumer;
0 47 1 context Lsun/security/ssl/ConnectionContext;
0 47 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
0 47 3 buffer Ljava/nio/ByteBuffer;
1 47 4 clientHello Lsun/security/ssl/ClientHello$ClientHelloMessage;
2 47 5 shc Lsun/security/ssl/ServerHandshakeContext;
8 47 6 pskSpec Lsun/security/ssl/PreSharedKeyExtension$CHPreSharedKeySpec;
11 12 7 ioe Ljava/io/IOException;
26 43 7 sessionCache Lsun/security/ssl/SSLSessionContextImpl;
27 43 8 idIndex I
29 39 9 requestedId Lsun/security/ssl/PreSharedKeyExtension$PskIdentity;
30 39 11 s Lsun/security/ssl/SSLSessionImpl;
Exception table:
from to target type
8 9 10 Class java.io.IOException
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