final class io.netty.handler.ssl.Java8SslUtils
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.ssl.Java8SslUtils
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/ssl/Java8SslUtils;
static java.util.List<java.lang.String> getSniHostNames(javax.net.ssl.SSLParameters);
descriptor: (Ljavax/net/ssl/SSLParameters;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual javax.net.ssl.SSLParameters.getServerNames:()Ljava/util/List;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: StackMap locals: java.util.List
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
3: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: javax.net.ssl.SSLParameters java.util.List java.util.List top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.net.ssl.SNIServerName
astore 3
start local 3 6: aload 3
instanceof javax.net.ssl.SNIHostName
ifeq 9
7: aload 2
aload 3
checkcast javax.net.ssl.SNIHostName
invokevirtual javax.net.ssl.SNIHostName.getAsciiName:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: goto 12
9: StackMap locals: javax.net.ssl.SSLParameters java.util.List java.util.List javax.net.ssl.SNIServerName java.util.Iterator
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Only "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Ljavax/net/ssl/SNIHostName;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc " instances are supported, but found: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 12: StackMap locals: javax.net.ssl.SSLParameters java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 sslParameters Ljavax/net/ssl/SSLParameters;
1 14 1 names Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
4 14 2 strings Ljava/util/List<Ljava/lang/String;>;
6 12 3 serverName Ljavax/net/ssl/SNIServerName;
Signature: (Ljavax/net/ssl/SSLParameters;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
sslParameters
static void setSniHostNames(javax.net.ssl.SSLParameters, java.util.List<java.lang.String>);
descriptor: (Ljavax/net/ssl/SSLParameters;Ljava/util/List;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: javax.net.ssl.SSLParameters java.util.List java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 2
new javax.net.ssl.SNIHostName
dup
aload 3
invokespecial javax.net.ssl.SNIHostName.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
aload 2
invokevirtual javax.net.ssl.SSLParameters.setServerNames:(Ljava/util/List;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 sslParameters Ljavax/net/ssl/SSLParameters;
0 7 1 names Ljava/util/List<Ljava/lang/String;>;
1 7 2 sniServerNames Ljava/util/List<Ljavax/net/ssl/SNIServerName;>;
3 4 3 name Ljava/lang/String;
Signature: (Ljavax/net/ssl/SSLParameters;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
sslParameters
names
static boolean getUseCipherSuitesOrder(javax.net.ssl.SSLParameters);
descriptor: (Ljavax/net/ssl/SSLParameters;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.net.ssl.SSLParameters.getUseCipherSuitesOrder:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sslParameters Ljavax/net/ssl/SSLParameters;
MethodParameters:
Name Flags
sslParameters
static void setUseCipherSuitesOrder(javax.net.ssl.SSLParameters, boolean);
descriptor: (Ljavax/net/ssl/SSLParameters;Z)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual javax.net.ssl.SSLParameters.setUseCipherSuitesOrder:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sslParameters Ljavax/net/ssl/SSLParameters;
0 2 1 useOrder Z
MethodParameters:
Name Flags
sslParameters
useOrder
static void setSNIMatchers(javax.net.ssl.SSLParameters, java.util.Collection<?>);
descriptor: (Ljavax/net/ssl/SSLParameters;Ljava/util/Collection;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.net.ssl.SSLParameters.setSNIMatchers:(Ljava/util/Collection;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sslParameters Ljavax/net/ssl/SSLParameters;
0 2 1 matchers Ljava/util/Collection<*>;
Signature: (Ljavax/net/ssl/SSLParameters;Ljava/util/Collection<*>;)V
MethodParameters:
Name Flags
sslParameters
matchers
static boolean checkSniHostnameMatch(java.util.Collection<?>, java.lang.String);
descriptor: (Ljava/util/Collection;Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ifnull 9
aload 0
invokeinterface java.util.Collection.isEmpty:()Z
ifne 9
1: new javax.net.ssl.SNIHostName
dup
aload 1
invokespecial javax.net.ssl.SNIHostName.<init>:(Ljava/lang/String;)V
astore 2
start local 2 2: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 7
4: StackMap locals: javax.net.ssl.SNIHostName java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.net.ssl.SNIMatcher
astore 4
start local 4 5: aload 4
invokevirtual javax.net.ssl.SNIMatcher.getType:()I
ifne 7
aload 4
aload 2
invokevirtual javax.net.ssl.SNIMatcher.matches:(Ljavax/net/ssl/SNIServerName;)Z
ifeq 7
6: iconst_1
ireturn
end local 4 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: iconst_0
ireturn
end local 3 end local 2 9: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 matchers Ljava/util/Collection<*>;
0 10 1 hostname Ljava/lang/String;
2 9 2 name Ljavax/net/ssl/SNIHostName;
3 9 3 matcherIt Ljava/util/Iterator<Ljavax/net/ssl/SNIMatcher;>;
5 7 4 matcher Ljavax/net/ssl/SNIMatcher;
Signature: (Ljava/util/Collection<*>;Ljava/lang/String;)Z
MethodParameters:
Name Flags
matchers
hostname
}
SourceFile: "Java8SslUtils.java"