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, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: StackMap locals: sun.security.x509.DNSName java.lang.String int
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 4
start local 4 8: goto 30
9: StackMap locals: sun.security.x509.DNSName java.lang.String int top int
StackMap stack:
aload 1
bipush 46
iload 4
invokevirtual java.lang.String.indexOf:(II)I
istore 3
start local 3 10: iload 3
ifge 12
11: aload 1
invokevirtual java.lang.String.length:()I
istore 3
12: StackMap locals: sun.security.x509.DNSName java.lang.String int int int
StackMap stack:
iload 3
iload 4
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:
iload 2
ifeq 20
15: ldc "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.String.indexOf:(I)I
ifge 22
16: aload 1
invokevirtual java.lang.String.length:()I
iconst_3
if_icmplt 19
aload 1
bipush 42
iconst_0
invokevirtual java.lang.String.indexOf:(II)I
ifne 19
17: aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 19
18: ldc "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
aload 1
iload 4
iconst_2
iadd
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.String.indexOf:(I)I
ifge 22
19: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "DNSName components must begin with a letter, digit, or the first component can have only a wildcard character *"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
ldc "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.String.indexOf:(I)I
ifge 22
21: 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
22: StackMap locals:
StackMap stack:
iload 4
iconst_1
iadd
istore 5
start local 5 23: goto 28
24: StackMap locals: int
StackMap stack:
aload 1
iload 5
invokevirtual java.lang.String.charAt:(I)C
istore 6
start local 6 25: ldc "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
iload 6
invokevirtual java.lang.String.indexOf:(I)I
ifge 27
iload 6
bipush 45
if_icmpeq 27
26: 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 6 27: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
28: iload 5
iload 3
if_icmplt 24
end local 5 29: iload 3
iconst_1
iadd
istore 4
end local 3 StackMap locals: sun.security.x509.DNSName java.lang.String int top int
StackMap stack:
30: iload 4
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 9
end local 4 31: aload 0
aload 1
putfield sun.security.x509.DNSName.name:Ljava/lang/String;
32: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lsun/security/x509/DNSName;
0 33 1 name Ljava/lang/String;
0 33 2 allowWildcard Z
10 30 3 endIndex I
8 31 4 startIndex I
23 29 5 nonStartIndex I
25 27 6 x C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
allowWildcard
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial sun.security.x509.DNSName.<init>:(Ljava/lang/String;Z)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 name Ljava/lang/String;
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"