public final class javax.net.ssl.SNIHostName extends javax.net.ssl.SNIServerName
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.net.ssl.SNIHostName
super_class: javax.net.ssl.SNIServerName
{
private final java.lang.String hostname;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
1: aload 1
2: ldc "Server name value of host_name cannot be null"
3: invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
4: iconst_2
5: invokestatic java.net.IDN.toASCII:(Ljava/lang/String;I)Ljava/lang/String;
dup
astore 1
6: getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokespecial javax.net.ssl.SNIServerName.<init>:(I[B)V
7: aload 0
aload 1
putfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
8: aload 0
invokevirtual javax.net.ssl.SNIHostName.checkHostName:()V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/net/ssl/SNIHostName;
0 10 1 hostname Ljava/lang/String;
MethodParameters:
Name Flags
hostname
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aload 1
invokespecial javax.net.ssl.SNIServerName.<init>:(I[B)V
1: getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
2: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
3: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
4: astore 2
start local 2 5: aload 0
6: aload 2
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.toString:()Ljava/lang/String;
7: invokestatic java.net.IDN.toASCII:(Ljava/lang/String;)Ljava/lang/String;
putfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
end local 2 8: goto 13
StackMap locals: javax.net.ssl.SNIHostName byte[]
StackMap stack: java.lang.Exception
9: astore 2
start local 2 10: new java.lang.IllegalArgumentException
dup
11: ldc "The encoded server name value is invalid"
aload 2
12: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 13: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.net.ssl.SNIHostName.checkHostName:()V
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/net/ssl/SNIHostName;
0 15 1 encoded [B
5 8 2 decoder Ljava/nio/charset/CharsetDecoder;
10 13 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 8 9 Class java.lang.RuntimeException
1 8 9 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
encoded
public java.lang.String getAsciiName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/net/ssl/SNIHostName;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof javax.net.ssl.SNIHostName
ifeq 4
3: aload 0
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
aload 1
checkcast javax.net.ssl.SNIHostName
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/net/ssl/SNIHostName;
0 5 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: bipush 17
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
iadd
istore 1
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/net/ssl/SNIHostName;
1 3 1 result I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "type=host_name (0), value="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/net/ssl/SNIHostName;
public static javax.net.ssl.SNIMatcher createSNIMatcher(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/net/ssl/SNIMatcher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 4
1: new java.lang.NullPointerException
dup
2: ldc "The regular expression cannot be null"
3: invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new javax.net.ssl.SNIHostName$SNIHostNameMatcher
dup
aload 0
invokespecial javax.net.ssl.SNIHostName$SNIHostNameMatcher.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 regex Ljava/lang/String;
MethodParameters:
Name Flags
regex
private void checkHostName();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
1: new java.lang.IllegalArgumentException
dup
2: ldc "Server name value of host_name cannot be empty"
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield javax.net.ssl.SNIHostName.hostname:Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 8
5: new java.lang.IllegalArgumentException
dup
6: ldc "Server name value of host_name cannot have the trailing dot"
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/net/ssl/SNIHostName;
}
SourceFile: "SNIHostName.java"
NestMembers:
javax.net.ssl.SNIHostName$SNIHostNameMatcher
InnerClasses:
private final SNIHostNameMatcher = javax.net.ssl.SNIHostName$SNIHostNameMatcher of javax.net.ssl.SNIHostName