final class sun.security.ssl.ServerNameExtension extends sun.security.ssl.HelloExtension
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.ServerNameExtension
super_class: sun.security.ssl.HelloExtension
{
static final int NAME_HOST_NAME;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
private java.util.List<sun.security.ssl.ServerNameExtension$ServerName> names;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lsun/security/ssl/ServerNameExtension$ServerName;>;
private int listLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.security.ssl.ExtensionType.EXT_SERVER_NAME:Lsun/security/ssl/ExtensionType;
invokespecial sun.security.ssl.HelloExtension.<init>:(Lsun/security/ssl/ExtensionType;)V
1: aload 0
iconst_0
putfield sun.security.ssl.ServerNameExtension.listLength:I
2: aload 0
new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
putfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
3: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: sun.security.ssl.ServerNameExtension java.util.List 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 2
ifnull 10
aload 2
invokevirtual java.lang.String.length:()I
ifeq 10
6: new sun.security.ssl.ServerNameExtension$ServerName
dup
iconst_0
aload 2
invokespecial sun.security.ssl.ServerNameExtension$ServerName.<init>:(ILjava/lang/String;)V
7: astore 4
start local 4 8: aload 0
getfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: aload 0
dup
getfield sun.security.ssl.ServerNameExtension.listLength:I
aload 4
getfield sun.security.ssl.ServerNameExtension$ServerName.length:I
iadd
putfield sun.security.ssl.ServerNameExtension.listLength:I
end local 4 end local 2 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: aload 0
getfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 15
12: new javax.net.ssl.SSLProtocolException
dup
13: ldc "The ServerNameList MUST NOT contain more than one name of the same name_type"
14: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: sun.security.ssl.ServerNameExtension java.util.List
StackMap stack:
aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
ifne 19
16: new javax.net.ssl.SSLProtocolException
dup
17: ldc "The ServerNameList cannot be empty"
18: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/security/ssl/ServerNameExtension;
0 20 1 hostnames Ljava/util/List<Ljava/lang/String;>;
5 10 2 hostname Ljava/lang/String;
8 10 4 serverName Lsun/security/ssl/ServerNameExtension$ServerName;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
hostnames
void <init>(sun.security.ssl.HandshakeInStream, int);
descriptor: (Lsun/security/ssl/HandshakeInStream;I)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic sun.security.ssl.ExtensionType.EXT_SERVER_NAME:Lsun/security/ssl/ExtensionType;
invokespecial sun.security.ssl.HelloExtension.<init>:(Lsun/security/ssl/ExtensionType;)V
1: iload 2
istore 3
start local 3 2: iload 2
iconst_2
if_icmplt 16
3: aload 0
aload 1
invokevirtual sun.security.ssl.HandshakeInStream.getInt16:()I
putfield sun.security.ssl.ServerNameExtension.listLength:I
4: aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
ifeq 5
aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
iconst_2
iadd
iload 2
if_icmpeq 8
5: StackMap locals: sun.security.ssl.ServerNameExtension sun.security.ssl.HandshakeInStream int int
StackMap stack:
new javax.net.ssl.SSLProtocolException
dup
6: new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ServerNameExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " extension"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
iinc 3 -2
9: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
10: goto 14
11: StackMap locals:
StackMap stack:
new sun.security.ssl.ServerNameExtension$ServerName
dup
aload 1
invokespecial sun.security.ssl.ServerNameExtension$ServerName.<init>:(Lsun/security/ssl/HandshakeInStream;)V
astore 4
start local 4 12: aload 0
getfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
13: iload 3
aload 4
getfield sun.security.ssl.ServerNameExtension$ServerName.length:I
isub
istore 3
end local 4 14: StackMap locals:
StackMap stack:
iload 3
ifgt 11
15: goto 19
StackMap locals:
StackMap stack:
16: iload 2
ifne 19
17: aload 0
iconst_0
putfield sun.security.ssl.ServerNameExtension.listLength:I
18: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
19: StackMap locals:
StackMap stack:
iload 3
ifeq 21
20: new javax.net.ssl.SSLProtocolException
dup
ldc "Invalid server_name extension"
invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/security/ssl/ServerNameExtension;
0 22 1 s Lsun/security/ssl/HandshakeInStream;
0 22 2 len I
2 22 3 remains I
12 14 4 name Lsun/security/ssl/ServerNameExtension$ServerName;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
len
int length();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
ifne 1
iconst_4
goto 2
StackMap locals:
StackMap stack:
1: bipush 6
aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
iadd
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/ServerNameExtension;
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.ServerNameExtension.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.ServerNameExtension.listLength:I
iconst_2
iadd
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
2: aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
ifeq 9
3: aload 1
aload 0
getfield sun.security.ssl.ServerNameExtension.listLength:I
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
4: aload 0
getfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: sun.security.ssl.ServerNameExtension sun.security.ssl.HandshakeOutStream top java.util.Iterator
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.ServerNameExtension$ServerName
astore 2
start local 2 6: aload 1
aload 2
getfield sun.security.ssl.ServerNameExtension$ServerName.type:I
invokevirtual sun.security.ssl.HandshakeOutStream.putInt8:(I)V
7: aload 1
aload 2
getfield sun.security.ssl.ServerNameExtension$ServerName.data:[B
invokevirtual sun.security.ssl.HandshakeOutStream.putBytes16:([B)V
end local 2 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: StackMap locals: sun.security.ssl.ServerNameExtension sun.security.ssl.HandshakeOutStream
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/ssl/ServerNameExtension;
0 10 1 s Lsun/security/ssl/HandshakeOutStream;
6 8 2 name Lsun/security/ssl/ServerNameExtension$ServerName;
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.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 0
getfield sun.security.ssl.ServerNameExtension.names:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: sun.security.ssl.ServerNameExtension java.lang.StringBuffer top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.ServerNameExtension$ServerName
astore 2
start local 2 3: 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/Object;)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.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: new java.lang.StringBuilder
dup
ldc "Extension "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.ServerNameExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", server_name: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/ServerNameExtension;
1 6 1 buffer Ljava/lang/StringBuffer;
3 4 2 name Lsun/security/ssl/ServerNameExtension$ServerName;
}
SourceFile: "ServerNameExtension.java"
NestMembers:
sun.security.ssl.ServerNameExtension$ServerName
InnerClasses:
ServerName = sun.security.ssl.ServerNameExtension$ServerName of sun.security.ssl.ServerNameExtension