public abstract class javax.net.ssl.SNIServerName
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: javax.net.ssl.SNIServerName
super_class: java.lang.Object
{
private final int type;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] encoded;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>(int, byte[]);
descriptor: (I[B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 1
ifge 5
2: new java.lang.IllegalArgumentException
dup
3: ldc "Server name type cannot be less than zero"
4: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: javax.net.ssl.SNIServerName int byte[]
StackMap stack:
iload 1
sipush 255
if_icmple 9
6: new java.lang.IllegalArgumentException
dup
7: ldc "Server name type cannot be greater than 255"
8: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield javax.net.ssl.SNIServerName.type:I
10: aload 2
ifnonnull 14
11: new java.lang.NullPointerException
dup
12: ldc "Server name encoded value cannot be null"
13: invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield javax.net.ssl.SNIServerName.encoded:[B
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavax/net/ssl/SNIServerName;
0 16 1 type I
0 16 2 encoded [B
MethodParameters:
Name Flags
type
encoded
public final int getType();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.net.ssl.SNIServerName.type:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/net/ssl/SNIServerName;
public final byte[] getEncoded();
descriptor: ()[B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.net.ssl.SNIServerName.encoded:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/net/ssl/SNIServerName;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, 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 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast javax.net.ssl.SNIServerName
astore 2
start local 2 5: aload 0
getfield javax.net.ssl.SNIServerName.type:I
aload 2
getfield javax.net.ssl.SNIServerName.type:I
if_icmpne 8
6: aload 0
getfield javax.net.ssl.SNIServerName.encoded:[B
aload 2
getfield javax.net.ssl.SNIServerName.encoded:[B
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 8
7: iconst_1
ireturn
StackMap locals: javax.net.ssl.SNIServerName
StackMap stack:
8: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/net/ssl/SNIServerName;
0 9 1 other Ljava/lang/Object;
5 9 2 that Ljavax/net/ssl/SNIServerName;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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.SNIServerName.type:I
iadd
istore 1
2: bipush 31
iload 1
imul
aload 0
getfield javax.net.ssl.SNIServerName.encoded:[B
invokestatic java.util.Arrays.hashCode:([B)I
iadd
istore 1
3: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/net/ssl/SNIServerName;
1 4 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: aload 0
getfield javax.net.ssl.SNIServerName.type:I
ifne 2
1: 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.SNIServerName.encoded:[B
invokestatic javax.net.ssl.SNIServerName.toHexString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "type=("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.net.ssl.SNIServerName.type:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "), value="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.net.ssl.SNIServerName.encoded:[B
invokestatic javax.net.ssl.SNIServerName.toHexString:([B)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 3 0 this Ljavax/net/ssl/SNIServerName;
private static java.lang.String toHexString(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
arraylength
ifne 2
1: ldc "(empty)"
areturn
2: StackMap locals:
StackMap stack:
ldc ":"
invokestatic java.util.HexFormat.ofDelimiter:(Ljava/lang/String;)Ljava/util/HexFormat;
invokevirtual java.util.HexFormat.withUpperCase:()Ljava/util/HexFormat;
aload 0
invokevirtual java.util.HexFormat.formatHex:([B)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bytes [B
MethodParameters:
Name Flags
bytes
}
SourceFile: "SNIServerName.java"