final class sun.security.ssl.ALPNExtension extends sun.security.ssl.HelloExtension
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ALPNExtension
super_class: sun.security.ssl.HelloExtension
{
static final int ;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
static final int MAX_APPLICATION_PROTOCOL_LENGTH;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 255
static final int MAX_APPLICATION_PROTOCOL_LIST_LENGTH;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 65535
private int listLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.List<java.lang.String> protocolNames;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
invokespecial sun.security.ssl.ALPNExtension.<init>:([Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/ALPNExtension;
0 2 1 protocolName Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
protocolName
void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.security.ssl.ExtensionType.EXT_ALPN:Lsun/security/ssl/ExtensionType;
invokespecial sun.security.ssl.HelloExtension.<init>:(Lsun/security/ssl/ExtensionType;)V
1: aload 0
iconst_0
putfield sun.security.ssl.ALPNExtension.listLength:I
2: aload 0
aconst_null
putfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
3: aload 1
arraylength
ifne 7
4: new java.lang.IllegalArgumentException
dup
5: ldc "The list of application protocols cannot be empty"
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: sun.security.ssl.ALPNExtension java.lang.String[]
StackMap stack:
aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
putfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
8: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 26
StackMap locals: sun.security.ssl.ALPNExtension java.lang.String[] top int int java.lang.String[]
StackMap stack:
9: aload 5
iload 3
aaload
astore 2
start local 2 10: aload 2
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
arraylength
istore 6
start local 6 11: iload 6
ifne 15
12: new javax.net.ssl.SSLProtocolException
dup
13: ldc "Application protocol name is empty"
14: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: sun.security.ssl.ALPNExtension java.lang.String[] java.lang.String int int java.lang.String[] int
StackMap stack:
iload 6
sipush 255
if_icmpgt 18
16: aload 0
dup
getfield sun.security.ssl.ALPNExtension.listLength:I
iload 6
iconst_1
iadd
iadd
putfield sun.security.ssl.ALPNExtension.listLength:I
17: goto 21
18: StackMap locals:
StackMap stack:
new javax.net.ssl.SSLProtocolException
dup
19: new java.lang.StringBuilder
dup
ldc "Application protocol name is too long: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
ldc 65535
if_icmple 25
22: new javax.net.ssl.SSLProtocolException
dup
23: ldc "Application protocol name list is too long"
24: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 2 25: StackMap locals: sun.security.ssl.ALPNExtension java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
26: iload 3
iload 4
if_icmplt 9
27: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/security/ssl/ALPNExtension;
0 28 1 protocolNames [Ljava/lang/String;
10 25 2 p Ljava/lang/String;
11 25 6 length I
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
protocolNames
void <init>(sun.security.ssl.HandshakeInStream, int);
descriptor: (Lsun/security/ssl/HandshakeInStream;I)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic sun.security.ssl.ExtensionType.EXT_ALPN:Lsun/security/ssl/ExtensionType;
invokespecial sun.security.ssl.HelloExtension.<init>:(Lsun/security/ssl/ExtensionType;)V
1: aload 0
iconst_0
putfield sun.security.ssl.ALPNExtension.listLength:I
2: aload 0
aconst_null
putfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
3: iload 2
iconst_2
if_icmplt 11
4: aload 0
aload 1
invokevirtual sun.security.ssl.HandshakeInStream.getInt16:()I
putfield sun.security.ssl.ALPNExtension.listLength:I
5: aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
iconst_2
if_icmplt 6
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
iconst_2
iadd
iload 2
if_icmpeq 16
6: StackMap locals: sun.security.ssl.ALPNExtension sun.security.ssl.HandshakeInStream int
StackMap stack:
new javax.net.ssl.SSLProtocolException
dup
7: new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ALPNExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " extension: incorrect list length "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "(length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
new javax.net.ssl.SSLProtocolException
dup
12: new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ALPNExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " extension: insufficient data "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: ldc "(length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
istore 3
start local 3 17: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
18: goto 28
19: StackMap locals: int
StackMap stack:
aload 1
invokevirtual sun.security.ssl.HandshakeInStream.getBytes8:()[B
astore 4
start local 4 20: aload 4
arraylength
ifne 24
21: new javax.net.ssl.SSLProtocolException
dup
new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ALPNExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
22: ldc " extension: empty application protocol name"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals: byte[]
StackMap stack:
new java.lang.String
dup
aload 4
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
25: astore 5
start local 5 26: aload 0
getfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
27: iload 3
aload 4
arraylength
iconst_1
iadd
isub
istore 3
end local 5 end local 4 28: StackMap locals:
StackMap stack:
iload 3
ifgt 19
29: iload 3
ifeq 35
30: new javax.net.ssl.SSLProtocolException
dup
31: new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ALPNExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " extension: extra data "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: ldc "(length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
33: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
34: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lsun/security/ssl/ALPNExtension;
0 36 1 s Lsun/security/ssl/HandshakeInStream;
0 36 2 len I
17 36 3 remaining I
20 28 4 bytes [B
26 28 5 p Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
len
java.util.List<java.lang.String> getPeerAPs();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/ALPNExtension;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
int length();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 6
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/ALPNExtension;
void send(sun.security.ssl.HandshakeOutStream);
descriptor: (Lsun/security/ssl/HandshakeOutStream;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.security.ssl.ALPNExtension.type:Lsun/security/ssl/ExtensionType;
getfield sun.security.ssl.ExtensionType.id:I
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
1: aload 1
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
iconst_2
iadd
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
2: aload 1
aload 0
getfield sun.security.ssl.ALPNExtension.listLength:I
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
3: aload 0
getfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: sun.security.ssl.ALPNExtension sun.security.ssl.HandshakeOutStream top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 5: aload 1
aload 2
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokevirtual sun.security.ssl.HandshakeOutStream.putBytes8:([B)V
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/ssl/ALPNExtension;
0 8 1 s Lsun/security/ssl/HandshakeOutStream;
5 6 2 p Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
ifnull 2
aload 0
getfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
2: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
ldc "<empty>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: goto 8
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.ssl.ALPNExtension.protocolNames:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: sun.security.ssl.ALPNExtension java.lang.StringBuilder top java.util.Iterator
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 6: aload 1
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: StackMap locals: sun.security.ssl.ALPNExtension java.lang.StringBuilder
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Extension "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ALPNExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
9: ldc ", protocol names: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ssl/ALPNExtension;
1 11 1 sb Ljava/lang/StringBuilder;
6 7 2 protocolName Ljava/lang/String;
}
SourceFile: "ALPNExtension.java"