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
private static final char[] HEXES;
descriptor: [C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "0123456789ABCDEF"
invokevirtual java.lang.String.toCharArray:()[C
putstatic javax.net.ssl.SNIServerName.HEXES:[C
return
LocalVariableTable:
Start End Slot Name Signature
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=4, locals=8, args_size=1
start local 0 0: aload 0
arraylength
ifne 2
1: ldc "(empty)"
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
arraylength
iconst_3
imul
iconst_1
isub
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 3: iconst_1
istore 2
start local 2 4: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 14
StackMap locals: byte[] java.lang.StringBuilder int top int int byte[]
StackMap stack:
5: aload 6
iload 4
baload
istore 3
start local 3 6: iload 2
ifeq 9
7: iconst_0
istore 2
8: goto 10
9: StackMap locals: byte[] java.lang.StringBuilder int int int int byte[]
StackMap stack:
aload 1
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
10: StackMap locals:
StackMap stack:
iload 3
sipush 255
iand
istore 7
start local 7 11: aload 1
getstatic javax.net.ssl.SNIServerName.HEXES:[C
iload 7
iconst_4
iushr
caload
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: aload 1
getstatic javax.net.ssl.SNIServerName.HEXES:[C
iload 7
bipush 15
iand
caload
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 7 end local 3 13: iinc 4 1
StackMap locals: byte[] java.lang.StringBuilder int top int int byte[]
StackMap stack:
14: iload 4
iload 5
if_icmplt 5
15: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 bytes [B
3 16 1 sb Ljava/lang/StringBuilder;
4 16 2 isInitial Z
6 13 3 b B
11 13 7 k I
MethodParameters:
Name Flags
bytes
}
SourceFile: "SNIServerName.java"