public class sun.security.x509.DNSName implements sun.security.x509.GeneralNameInterface
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.x509.DNSName
super_class: java.lang.Object
{
private java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String alphaDigits;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
public void <init>(sun.security.util.DerValue);
descriptor: (Lsun/security/util/DerValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual sun.security.util.DerValue.getIA5String:()Ljava/lang/String;
putfield sun.security.x509.DNSName.name:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/x509/DNSName;
0 3 1 derValue Lsun/security/util/DerValue;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
derValue
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.String.length:()I
ifne 3
2: StackMap locals: sun.security.x509.DNSName java.lang.String
StackMap stack:
new java.io.IOException
dup
ldc "DNSName must not be null or empty"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
ldc " "
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 5
4: new java.io.IOException
dup
ldc "DNSName with blank components is not permitted"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
ldc "."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 6
aload 1
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 7
6: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "DNSName may not begin or end with a ."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 8: goto 24
9: StackMap locals: sun.security.x509.DNSName java.lang.String top int
StackMap stack:
aload 1
bipush 46
iload 3
invokevirtual java.lang.String.indexOf:(II)I
istore 2
start local 2 10: iload 2
ifge 12
11: aload 1
invokevirtual java.lang.String.length:()I
istore 2
12: StackMap locals: sun.security.x509.DNSName java.lang.String int int
StackMap stack:
iload 2
iload 3
isub
iconst_1
if_icmpge 14
13: new java.io.IOException
dup
ldc "DNSName with empty components are not permitted"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
ldc "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.String.indexOf:(I)I
ifge 16
15: new java.io.IOException
dup
ldc "DNSName components must begin with a letter or digit"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
istore 4
start local 4 17: goto 22
18: StackMap locals: int
StackMap stack:
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 19: ldc "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
iload 5
invokevirtual java.lang.String.indexOf:(I)I
ifge 21
iload 5
bipush 45
if_icmpeq 21
20: new java.io.IOException
dup
ldc "DNSName components must consist of letters, digits, and hyphens"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 5 21: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
22: iload 4
iload 2
if_icmplt 18
end local 4 23: iload 2
iconst_1
iadd
istore 3
end local 2 StackMap locals: sun.security.x509.DNSName java.lang.String top int
StackMap stack:
24: iload 3
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 9
end local 3 25: aload 0
aload 1
putfield sun.security.x509.DNSName.name:Ljava/lang/String;
26: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/security/x509/DNSName;
0 27 1 name Ljava/lang/String;
10 24 2 endIndex I
8 25 3 startIndex I
17 23 4 nonStartIndex I
19 21 5 x C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public int getType();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_2
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/DNSName;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/DNSName;
public void encode(sun.security.util.DerOutputStream);
descriptor: (Lsun/security/util/DerOutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
invokevirtual sun.security.util.DerOutputStream.putIA5String:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/x509/DNSName;
0 2 1 out Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
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 "DNSName: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.x509.DNSName.name: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 Lsun/security/x509/DNSName;
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 1
instanceof sun.security.x509.DNSName
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast sun.security.x509.DNSName
astore 2
start local 2 5: aload 0
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
aload 2
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/x509/DNSName;
0 6 1 obj Ljava/lang/Object;
5 6 2 other Lsun/security/x509/DNSName;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.x509.DNSName.name: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
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/DNSName;
public int constrains(sun.security.x509.GeneralNameInterface);
descriptor: (Lsun/security/x509/GeneralNameInterface;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: iconst_m1
istore 2
start local 2 2: goto 27
end local 2 3: StackMap locals:
StackMap stack:
aload 1
invokeinterface sun.security.x509.GeneralNameInterface.getType:()I
iconst_2
if_icmpeq 6
4: iconst_m1
istore 2
start local 2 5: goto 27
end local 2 6: StackMap locals:
StackMap stack:
aload 1
checkcast sun.security.x509.DNSName
invokevirtual sun.security.x509.DNSName.getName:()Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
7: astore 3
start local 3 8: aload 0
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 4
start local 4 9: aload 3
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: iconst_0
istore 2
start local 2 11: goto 27
end local 2 12: StackMap locals: sun.security.x509.DNSName sun.security.x509.GeneralNameInterface top java.lang.String java.lang.String
StackMap stack:
aload 4
aload 3
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 19
13: aload 4
aload 3
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 5
start local 5 14: aload 4
iload 5
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 17
15: iconst_2
istore 2
start local 2 16: goto 27
end local 2 17: StackMap locals: int
StackMap stack:
iconst_3
istore 2
end local 5 start local 2 18: goto 27
end local 2 StackMap locals:
StackMap stack:
19: aload 3
aload 4
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 26
20: aload 3
aload 4
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 5
start local 5 21: aload 3
iload 5
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 24
22: iconst_1
istore 2
start local 2 23: goto 27
end local 2 24: StackMap locals: int
StackMap stack:
iconst_3
istore 2
end local 5 start local 2 25: goto 27
end local 2 26: StackMap locals:
StackMap stack:
iconst_3
istore 2
end local 4 end local 3 start local 2 27: StackMap locals: sun.security.x509.DNSName sun.security.x509.GeneralNameInterface int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/security/x509/DNSName;
0 28 1 inputName Lsun/security/x509/GeneralNameInterface;
2 3 2 constraintType I
5 6 2 constraintType I
11 12 2 constraintType I
16 17 2 constraintType I
18 19 2 constraintType I
23 24 2 constraintType I
25 26 2 constraintType I
27 28 2 constraintType I
8 27 3 inName Ljava/lang/String;
9 27 4 thisName Ljava/lang/String;
14 18 5 inNdx I
21 25 5 ndx I
Exceptions:
throws java.lang.UnsupportedOperationException
MethodParameters:
Name Flags
inputName
public int subtreeDepth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: aload 0
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
iinc 1 1
4: aload 0
getfield sun.security.x509.DNSName.name:Ljava/lang/String;
bipush 46
iload 2
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 2
StackMap locals:
StackMap stack:
5: iload 2
ifge 3
end local 2 6: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/x509/DNSName;
1 7 1 sum I
2 6 2 i I
Exceptions:
throws java.lang.UnsupportedOperationException
}
SourceFile: "DNSName.java"