final class sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec implements sun.security.ssl.SSLExtension$SSLExtensionSpec
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec
super_class: java.lang.Object
{
final int selectedIdentity;
descriptor: I
flags: (0x0010) ACC_FINAL
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.selectedIdentity:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/PreSharedKeyExtension$SHPreSharedKeySpec;
0 3 1 selectedIdentity I
MethodParameters:
Name Flags
selectedIdentity
void <init>(sun.security.ssl.HandshakeContext, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=5, 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
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_2
if_icmpge 7
2: aload 1
getfield sun.security.ssl.HandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
3: new java.lang.StringBuilder
dup
ldc "Invalid pre_shared_key extension: insufficient selected_identity (length="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
7: StackMap locals: sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec sun.security.ssl.HandshakeContext java.nio.ByteBuffer
StackMap stack:
aload 0
aload 2
invokestatic sun.security.ssl.Record.getInt16:(Ljava/nio/ByteBuffer;)I
putfield sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.selectedIdentity:I
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/ssl/PreSharedKeyExtension$SHPreSharedKeySpec;
0 9 1 context Lsun/security/ssl/HandshakeContext;
0 9 2 m Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
m
byte[] getEncoded();
descriptor: ()[B
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: iconst_2
newarray 8
dup
iconst_0
1: aload 0
getfield sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.selectedIdentity:I
bipush 8
ishr
sipush 255
iand
i2b
bastore
dup
iconst_1
2: aload 0
getfield sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.selectedIdentity:I
sipush 255
iand
i2b
bastore
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ssl/PreSharedKeyExtension$SHPreSharedKeySpec;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: new java.text.MessageFormat
dup
1: ldc "\"PreSharedKey\": '{'\n \"selected_identity\" : \"{0}\",\n'}'"
2: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
3: invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 1
start local 1 4: iconst_1
anewarray java.lang.Object
dup
iconst_0
5: aload 0
getfield sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec.selectedIdentity:I
invokestatic sun.security.ssl.Utilities.byte16HexString:(I)Ljava/lang/String;
aastore
6: astore 2
start local 2 7: aload 1
aload 2
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/PreSharedKeyExtension$SHPreSharedKeySpec;
4 8 1 messageFormat Ljava/text/MessageFormat;
7 8 2 messageFields [Ljava/lang/Object;
}
SourceFile: "PreSharedKeyExtension.java"
NestHost: sun.security.ssl.PreSharedKeyExtension
InnerClasses:
private final SHPreSharedKeySpec = sun.security.ssl.PreSharedKeyExtension$SHPreSharedKeySpec of sun.security.ssl.PreSharedKeyExtension
abstract SSLExtensionSpec = sun.security.ssl.SSLExtension$SSLExtensionSpec of sun.security.ssl.SSLExtension