public class sun.security.util.HostnameChecker
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.util.HostnameChecker
super_class: java.lang.Object
{
public static final byte TYPE_TLS;
descriptor: B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final sun.security.util.HostnameChecker INSTANCE_TLS;
descriptor: Lsun/security/util/HostnameChecker;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final byte TYPE_LDAP;
descriptor: B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final sun.security.util.HostnameChecker INSTANCE_LDAP;
descriptor: Lsun/security/util/HostnameChecker;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int ALTNAME_DNS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int ALTNAME_IP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
private final byte checkType;
descriptor: B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.lang.String ACE_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "xn--"
private static final int ACE_PREFIX_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int MAX_LABEL_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 63
private static sun.net.idn.StringPrep namePrep;
descriptor: Lsun/net/idn/StringPrep;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc Lsun/security/util/HostnameChecker;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.security.util.HostnameChecker.$assertionsDisabled:Z
3: new sun.security.util.HostnameChecker
dup
iconst_1
invokespecial sun.security.util.HostnameChecker.<init>:(B)V
4: putstatic sun.security.util.HostnameChecker.INSTANCE_TLS:Lsun/security/util/HostnameChecker;
5: new sun.security.util.HostnameChecker
dup
iconst_2
invokespecial sun.security.util.HostnameChecker.<init>:(B)V
6: putstatic sun.security.util.HostnameChecker.INSTANCE_LDAP:Lsun/security/util/HostnameChecker;
7: ldc "xn--"
invokevirtual java.lang.String.length:()I
putstatic sun.security.util.HostnameChecker.ACE_PREFIX_LENGTH:I
8: aconst_null
putstatic sun.security.util.HostnameChecker.namePrep:Lsun/net/idn/StringPrep;
9: aconst_null
astore 0
start local 0 10: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 13
11: new sun.security.util.HostnameChecker$1
dup
invokespecial sun.security.util.HostnameChecker$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.io.InputStream
astore 0
12: goto 14
13: StackMap locals: java.io.InputStream
StackMap stack:
ldc Lsun/net/idn/StringPrep;
ldc "uidna.spp"
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 0
14: StackMap locals:
StackMap stack:
new sun.net.idn.StringPrep
dup
aload 0
invokespecial sun.net.idn.StringPrep.<init>:(Ljava/io/InputStream;)V
putstatic sun.security.util.HostnameChecker.namePrep:Lsun/net/idn/StringPrep;
15: aload 0
invokevirtual java.io.InputStream.close:()V
16: goto 19
StackMap locals:
StackMap stack: java.io.IOException
17: pop
18: getstatic sun.security.util.HostnameChecker.$assertionsDisabled:Z
ifne 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 0 19: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
10 19 0 stream Ljava/io/InputStream;
Exception table:
from to target type
10 16 17 Class java.io.IOException
private void <init>(byte);
descriptor: (B)V
flags: (0x0002) ACC_PRIVATE
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
iload 1
putfield sun.security.util.HostnameChecker.checkType:B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/util/HostnameChecker;
0 3 1 checkType B
MethodParameters:
Name Flags
checkType
public static sun.security.util.HostnameChecker getInstance(byte);
descriptor: (B)Lsun/security/util/HostnameChecker;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
iconst_1
if_icmpne 2
1: getstatic sun.security.util.HostnameChecker.INSTANCE_TLS:Lsun/security/util/HostnameChecker;
areturn
2: StackMap locals:
StackMap stack:
iload 0
iconst_2
if_icmpne 4
3: getstatic sun.security.util.HostnameChecker.INSTANCE_LDAP:Lsun/security/util/HostnameChecker;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown check type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 checkType B
MethodParameters:
Name Flags
checkType
public void match(java.lang.String, java.security.cert.X509Certificate);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic sun.security.util.HostnameChecker.isIpAddress:(Ljava/lang/String;)Z
ifeq 3
1: aload 1
aload 2
invokestatic sun.security.util.HostnameChecker.matchIP:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual sun.security.util.HostnameChecker.matchDNS:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/util/HostnameChecker;
0 5 1 expectedName Ljava/lang/String;
0 5 2 cert Ljava/security/cert/X509Certificate;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedName
cert
public static boolean match(java.lang.String, java.security.Principal);
descriptor: (Ljava/lang/String;Ljava/security/Principal;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.security.util.HostnameChecker.getServerName:(Ljava/security/Principal;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
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 2 0 expectedName Ljava/lang/String;
0 2 1 principal Ljava/security/Principal;
1 2 2 hostName Ljava/lang/String;
MethodParameters:
Name Flags
expectedName
principal
public static java.lang.String getServerName(java.security.Principal);
descriptor: (Ljava/security/Principal;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.security.ssl.Krb5Helper.getPrincipalHostName:(Ljava/security/Principal;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 principal Ljava/security/Principal;
MethodParameters:
Name Flags
principal
private static boolean isIpAddress(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.net.util.IPAddressUtil.isIPv4LiteralAddress:(Ljava/lang/String;)Z
ifne 2
1: aload 0
invokestatic sun.net.util.IPAddressUtil.isIPv6LiteralAddress:(Ljava/lang/String;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private static void matchIP(java.lang.String, java.security.cert.X509Certificate);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 2
start local 2 1: aload 2
ifnonnull 5
2: new java.security.cert.CertificateException
dup
3: ldc "No subject alternative names present"
4: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.util.Collection
StackMap stack:
aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 18
StackMap locals: java.lang.String java.security.cert.X509Certificate java.util.Collection top java.util.Iterator
StackMap stack:
6: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 7: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
bipush 7
if_icmpne 18
8: aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 9: aload 0
aload 5
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 11
10: return
11: StackMap locals: java.lang.String java.security.cert.X509Certificate java.util.Collection java.util.List java.util.Iterator java.lang.String
StackMap stack:
aload 0
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
12: aload 5
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
13: invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
14: ifeq 18
15: return
16: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
goto 18
17: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
end local 5 end local 3 18: StackMap locals: java.lang.String java.security.cert.X509Certificate java.util.Collection top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
19: new java.security.cert.CertificateException
dup
new java.lang.StringBuilder
dup
ldc "No subject alternative names matching IP address "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
20: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 expectedIP Ljava/lang/String;
0 22 1 cert Ljava/security/cert/X509Certificate;
1 22 2 subjAltNames Ljava/util/Collection<Ljava/util/List<*>;>;
7 18 3 next Ljava/util/List<*>;
9 18 5 ipAddress Ljava/lang/String;
Exception table:
from to target type
11 15 16 Class java.net.UnknownHostException
11 15 17 Class java.lang.SecurityException
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedIP
cert
private void matchDNS(java.lang.String, java.security.cert.X509Certificate);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic sun.security.util.HostnameChecker.checkHostName:(Ljava/lang/String;)V
1: goto 6
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
2: astore 3
start local 3 3: new java.security.cert.CertificateException
dup
4: new java.lang.StringBuilder
dup
ldc "Illegal given domain name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
5: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 3
start local 3 7: aload 3
ifnull 21
8: iconst_0
istore 4
start local 4 9: aload 3
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 16
StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate java.util.Collection int top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 5
start local 5 11: aload 5
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_2
if_icmpne 16
12: iconst_1
istore 4
13: aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 14: aload 0
aload 1
aload 7
invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 16
15: return
end local 7 end local 5 16: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
17: iload 4
ifeq 21
18: new java.security.cert.CertificateException
dup
new java.lang.StringBuilder
dup
ldc "No subject alternative DNS name matching "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " found."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
end local 4 21: StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate java.util.Collection
StackMap stack:
aload 2
invokestatic sun.security.util.HostnameChecker.getSubjectX500Name:(Ljava/security/cert/X509Certificate;)Lsun/security/x509/X500Name;
astore 4
start local 4 22: aload 4
23: getstatic sun.security.x509.X500Name.commonName_oid:Lsun/security/util/ObjectIdentifier;
24: invokevirtual sun.security.x509.X500Name.findMostSpecificAttribute:(Lsun/security/util/ObjectIdentifier;)Lsun/security/util/DerValue;
astore 5
start local 5 25: aload 5
ifnull 34
26: aload 5
invokevirtual sun.security.util.DerValue.getAsString:()Ljava/lang/String;
astore 6
start local 6 27: aload 6
getstatic java.text.Normalizer$Form.NFKC:Ljava/text/Normalizer$Form;
invokestatic java.text.Normalizer.isNormalized:(Ljava/lang/CharSequence;Ljava/text/Normalizer$Form;)Z
ifne 31
28: new java.security.cert.CertificateException
dup
new java.lang.StringBuilder
dup
ldc "Not a formal name "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
30: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals: sun.security.x509.X500Name sun.security.util.DerValue java.lang.String
StackMap stack:
aload 0
aload 1
aload 6
invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 34
32: return
end local 6 33: StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate java.util.Collection sun.security.x509.X500Name sun.security.util.DerValue
StackMap stack: java.io.IOException
pop
34: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "No name matching "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 35: new java.security.cert.CertificateException
dup
aload 6
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lsun/security/util/HostnameChecker;
0 36 1 expectedName Ljava/lang/String;
0 36 2 cert Ljava/security/cert/X509Certificate;
3 6 3 iae Ljava/lang/IllegalArgumentException;
7 36 3 subjAltNames Ljava/util/Collection<Ljava/util/List<*>;>;
9 21 4 foundDNS Z
11 16 5 next Ljava/util/List<*>;
14 16 7 dnsName Ljava/lang/String;
22 36 4 subjectName Lsun/security/x509/X500Name;
25 36 5 derValue Lsun/security/util/DerValue;
27 33 6 cname Ljava/lang/String;
35 36 6 msg Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
26 32 33 Class java.io.IOException
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedName
cert
public static sun.security.x509.X500Name getSubjectX500Name(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Lsun/security/x509/X500Name;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.security.cert.X509Certificate.getSubjectDN:()Ljava/security/Principal;
astore 1
start local 1 1: aload 1
instanceof sun.security.x509.X500Name
ifeq 4
2: aload 1
checkcast sun.security.x509.X500Name
3: areturn
4: StackMap locals: java.security.Principal
StackMap stack:
aload 0
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
astore 2
start local 2 5: new sun.security.x509.X500Name
dup
aload 2
invokevirtual javax.security.auth.x500.X500Principal.getEncoded:()[B
invokespecial sun.security.x509.X500Name.<init>:([B)V
6: areturn
end local 2 end local 1 7: StackMap locals: java.security.cert.X509Certificate
StackMap stack: java.io.IOException
astore 1
start local 1 8: new java.security.cert.CertificateParsingException
dup
invokespecial java.security.cert.CertificateParsingException.<init>:()V
aload 1
invokevirtual java.security.cert.CertificateParsingException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
9: checkcast java.security.cert.CertificateParsingException
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 cert Ljava/security/cert/X509Certificate;
1 7 1 subjectDN Ljava/security/Principal;
5 7 2 subjectX500 Ljavax/security/auth/x500/X500Principal;
8 10 1 e Ljava/io/IOException;
Exception table:
from to target type
0 3 7 Class java.io.IOException
4 6 7 Class java.io.IOException
Exceptions:
throws java.security.cert.CertificateParsingException
MethodParameters:
Name Flags
cert
private boolean isMatched(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
bipush 42
bipush 122
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic sun.security.util.HostnameChecker.checkHostName:(Ljava/lang/String;)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
2: pop
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.util.HostnameChecker.checkType:B
iconst_1
if_icmpne 6
5: aload 1
aload 2
invokestatic sun.security.util.HostnameChecker.matchAllWildcards:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.util.HostnameChecker.checkType:B
iconst_2
if_icmpne 8
7: aload 1
aload 2
invokestatic sun.security.util.HostnameChecker.matchLeftmostWildcard:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/util/HostnameChecker;
0 9 1 name Ljava/lang/String;
0 9 2 template Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
name
template
private static boolean matchAllWildcards(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 0
1: aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
2: new java.util.StringTokenizer
dup
aload 0
ldc "."
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 3: new java.util.StringTokenizer
dup
aload 1
ldc "."
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 4: aload 2
invokevirtual java.util.StringTokenizer.countTokens:()I
aload 3
invokevirtual java.util.StringTokenizer.countTokens:()I
if_icmpeq 11
5: iconst_0
ireturn
6: StackMap locals: java.util.StringTokenizer java.util.StringTokenizer
StackMap stack:
aload 2
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
7: aload 3
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
8: invokestatic sun.security.util.HostnameChecker.matchWildCards:(Ljava/lang/String;Ljava/lang/String;)Z
9: ifne 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 6
12: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 name Ljava/lang/String;
0 13 1 template Ljava/lang/String;
3 13 2 nameSt Ljava/util/StringTokenizer;
4 13 3 templateSt Ljava/util/StringTokenizer;
MethodParameters:
Name Flags
name
template
private static boolean matchLeftmostWildcard(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 0
1: aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
2: aload 1
ldc "."
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 3: aload 0
ldc "."
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 3
start local 3 4: iload 2
iconst_m1
if_icmpne 6
5: aload 1
invokevirtual java.lang.String.length:()I
istore 2
6: StackMap locals: int int
StackMap stack:
iload 3
iconst_m1
if_icmpne 8
7: aload 0
invokevirtual java.lang.String.length:()I
istore 3
8: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
9: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
10: invokestatic sun.security.util.HostnameChecker.matchWildCards:(Ljava/lang/String;Ljava/lang/String;)Z
11: ifeq 15
12: aload 1
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
13: aload 0
iload 3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
14: invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
15: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 name Ljava/lang/String;
0 16 1 template Ljava/lang/String;
3 16 2 templateIdx I
4 16 3 nameIdx I
MethodParameters:
Name Flags
name
template
private static boolean matchWildCards(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ldc "*"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 1: iload 2
iconst_m1
if_icmpne 3
2: aload 0
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
3: StackMap locals: int
StackMap stack:
iconst_1
istore 3
start local 3 4: ldc ""
astore 4
start local 4 5: aload 1
astore 5
start local 5 6: goto 16
7: StackMap locals: int java.lang.String java.lang.String
StackMap stack:
aload 5
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
8: aload 5
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
9: aload 0
aload 4
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 6
start local 6 10: iload 6
iconst_m1
if_icmpeq 12
11: iload 3
ifeq 13
iload 6
ifeq 13
12: StackMap locals: int
StackMap stack:
iconst_0
ireturn
13: StackMap locals:
StackMap stack:
iconst_0
istore 3
14: aload 0
iload 6
aload 4
invokevirtual java.lang.String.length:()I
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
15: aload 5
ldc "*"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
end local 6 16: StackMap locals:
StackMap stack:
iload 2
iconst_m1
if_icmpne 7
17: aload 0
aload 5
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 name Ljava/lang/String;
0 18 1 template Ljava/lang/String;
1 18 2 wildcardIdx I
4 18 3 isBeginning Z
5 18 4 beforeWildcard Ljava/lang/String;
6 18 5 afterWildcard Ljava/lang/String;
10 16 6 beforeStartIdx I
MethodParameters:
Name Flags
name
template
private static void checkHostName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
1: ldc "Server name value of host_name cannot be null"
2: invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
3: iconst_2
4: invokestatic sun.security.util.HostnameChecker.toASCII:(Ljava/lang/String;I)Ljava/lang/String;
astore 0
5: aload 0
getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
pop
6: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 10
7: new java.lang.IllegalArgumentException
dup
8: ldc "Server name value of host_name cannot be empty"
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 14
11: new java.lang.IllegalArgumentException
dup
12: ldc "Server name value of host_name cannot have the trailing dot"
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 hostname Ljava/lang/String;
MethodParameters:
Name Flags
hostname
private static java.lang.String toASCII(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 4
start local 4 3: aload 0
invokestatic sun.security.util.HostnameChecker.isRootLabel:(Ljava/lang/String;)Z
ifeq 10
4: ldc "."
areturn
5: StackMap locals: int int java.lang.StringBuffer
StackMap stack:
aload 0
iload 2
invokestatic sun.security.util.HostnameChecker.searchDots:(Ljava/lang/String;I)I
istore 3
6: aload 4
aload 0
iload 2
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
iload 1
invokestatic sun.security.util.HostnameChecker.toASCIIInternal:(Ljava/lang/String;I)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: iload 3
aload 0
invokevirtual java.lang.String.length:()I
if_icmpeq 9
8: aload 4
bipush 46
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
9: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
istore 2
10: StackMap locals:
StackMap stack:
iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 5
11: aload 4
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 input Ljava/lang/String;
0 12 1 flag I
1 12 2 p I
2 12 3 q I
3 12 4 out Ljava/lang/StringBuffer;
MethodParameters:
Name Flags
input
flag
private static java.lang.String toASCIIInternal(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.security.util.HostnameChecker.isAllASCII:(Ljava/lang/String;)Z
istore 2
start local 2 1: iload 2
ifne 7
2: aload 0
invokestatic sun.text.normalizer.UCharacterIterator.getInstance:(Ljava/lang/String;)Lsun/text/normalizer/UCharacterIterator;
astore 4
start local 4 3: getstatic sun.security.util.HostnameChecker.namePrep:Lsun/net/idn/StringPrep;
aload 4
iload 1
invokevirtual sun.net.idn.StringPrep.prepare:(Lsun/text/normalizer/UCharacterIterator;I)Ljava/lang/StringBuffer;
astore 3
start local 3 4: goto 8
end local 3 StackMap locals: java.lang.String int int top sun.text.normalizer.UCharacterIterator
StackMap stack: java.text.ParseException
5: astore 5
start local 5 6: new java.lang.IllegalArgumentException
dup
aload 5
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 7: StackMap locals: java.lang.String int int
StackMap stack:
new java.lang.StringBuffer
dup
aload 0
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 3
start local 3 8: StackMap locals: java.lang.StringBuffer
StackMap stack:
aload 3
invokevirtual java.lang.StringBuffer.length:()I
ifne 12
9: new java.lang.IllegalArgumentException
dup
10: ldc "Empty label is not a legal name"
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
iload 1
iconst_2
iand
ifeq 13
iconst_1
goto 14
StackMap locals:
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: istore 4
start local 4 15: iload 4
ifeq 30
16: iconst_0
istore 5
start local 5 17: goto 24
18: StackMap locals: int int
StackMap stack:
aload 3
iload 5
invokevirtual java.lang.StringBuffer.charAt:(I)C
istore 6
start local 6 19: iload 6
invokestatic sun.security.util.HostnameChecker.isNonLDHAsciiCodePoint:(I)Z
ifeq 23
20: new java.lang.IllegalArgumentException
dup
21: ldc "Contains non-LDH ASCII characters"
22: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 6 23: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
24: iload 5
aload 3
invokevirtual java.lang.StringBuffer.length:()I
if_icmplt 18
end local 5 25: aload 3
iconst_0
invokevirtual java.lang.StringBuffer.charAt:(I)C
bipush 45
if_icmpeq 27
26: aload 3
aload 3
invokevirtual java.lang.StringBuffer.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuffer.charAt:(I)C
bipush 45
if_icmpne 30
27: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
28: ldc "Has leading or trailing hyphen"
29: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
30: StackMap locals:
StackMap stack:
iload 2
ifne 41
31: aload 3
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
invokestatic sun.security.util.HostnameChecker.isAllASCII:(Ljava/lang/String;)Z
ifne 41
32: aload 3
invokestatic sun.security.util.HostnameChecker.startsWithACEPrefix:(Ljava/lang/StringBuffer;)Z
ifne 40
33: aload 3
aconst_null
invokestatic sun.net.idn.Punycode.encode:(Ljava/lang/StringBuffer;[Z)Ljava/lang/StringBuffer;
astore 3
34: goto 37
StackMap locals:
StackMap stack: java.text.ParseException
35: astore 5
start local 5 36: new java.lang.IllegalArgumentException
dup
aload 5
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 37: StackMap locals:
StackMap stack:
aload 3
invokestatic sun.security.util.HostnameChecker.toASCIILower:(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
astore 3
38: aload 3
iconst_0
ldc "xn--"
invokevirtual java.lang.StringBuffer.insert:(ILjava/lang/String;)Ljava/lang/StringBuffer;
pop
39: goto 41
40: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "The input starts with the ACE Prefix"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
41: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.StringBuffer.length:()I
bipush 63
if_icmple 43
42: new java.lang.IllegalArgumentException
dup
ldc "The label in the input is too long"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 label Ljava/lang/String;
0 44 1 flag I
1 44 2 isASCII Z
4 5 3 dest Ljava/lang/StringBuffer;
8 44 3 dest Ljava/lang/StringBuffer;
3 7 4 iter Lsun/text/normalizer/UCharacterIterator;
6 7 5 e Ljava/text/ParseException;
15 44 4 useSTD3ASCIIRules Z
17 25 5 i I
19 23 6 c I
36 37 5 e Ljava/text/ParseException;
Exception table:
from to target type
3 4 5 Class java.text.ParseException
33 34 35 Class java.text.ParseException
MethodParameters:
Name Flags
label
flag
private static boolean isNonLDHAsciiCodePoint(int);
descriptor: (I)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iflt 1
iload 0
bipush 44
if_icmple 7
1: StackMap locals:
StackMap stack:
bipush 46
iload 0
if_icmpgt 2
iload 0
bipush 47
if_icmple 7
2: StackMap locals:
StackMap stack:
bipush 58
iload 0
if_icmpgt 3
iload 0
bipush 64
if_icmple 7
3: StackMap locals:
StackMap stack:
bipush 91
iload 0
if_icmpgt 4
iload 0
bipush 96
if_icmple 7
4: StackMap locals:
StackMap stack:
bipush 123
iload 0
if_icmpgt 6
iload 0
bipush 127
5: if_icmple 7
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
StackMap locals:
StackMap stack:
7: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 ch I
MethodParameters:
Name Flags
ch
private static int searchDots(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
istore 2
start local 2 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
invokestatic sun.security.util.HostnameChecker.isLabelSeparator:(C)Z
ifeq 4
3: goto 6
4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 2
6: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 s Ljava/lang/String;
0 7 1 start I
1 7 2 i I
MethodParameters:
Name Flags
s
start
private static boolean isRootLabel(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 1
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic sun.security.util.HostnameChecker.isLabelSeparator:(C)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
private static boolean isLabelSeparator(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 46
if_icmpeq 1
iload 0
sipush 12290
if_icmpeq 1
iload 0
ldc 65294
if_icmpeq 1
iload 0
ldc 65377
if_icmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean startsWithACEPrefix(java.lang.StringBuffer);
descriptor: (Ljava/lang/StringBuffer;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: aload 0
invokevirtual java.lang.StringBuffer.length:()I
getstatic sun.security.util.HostnameChecker.ACE_PREFIX_LENGTH:I
if_icmpge 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
iconst_0
istore 2
start local 2 4: goto 8
5: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.StringBuffer.charAt:(I)C
invokestatic sun.security.util.HostnameChecker.toASCIILower:(C)C
ldc "xn--"
iload 2
invokevirtual java.lang.String.charAt:(I)C
if_icmpeq 7
6: iconst_0
istore 1
7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
getstatic sun.security.util.HostnameChecker.ACE_PREFIX_LENGTH:I
if_icmplt 5
end local 2 9: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 input Ljava/lang/StringBuffer;
1 10 1 startsWithPrefix Z
4 9 2 i I
MethodParameters:
Name Flags
input
private static char toASCIILower(char);
descriptor: (C)C
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 65
iload 0
if_icmpgt 2
iload 0
bipush 90
if_icmpgt 2
1: iload 0
bipush 97
iadd
bipush 65
isub
i2c
ireturn
2: StackMap locals:
StackMap stack:
iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 ch C
MethodParameters:
Name Flags
ch
private static java.lang.StringBuffer toASCIILower(java.lang.StringBuffer);
descriptor: (Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.lang.StringBuffer int
StackMap stack:
aload 1
aload 0
iload 2
invokevirtual java.lang.StringBuffer.charAt:(I)C
invokestatic sun.security.util.HostnameChecker.toASCIILower:(C)C
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
invokevirtual java.lang.StringBuffer.length:()I
if_icmplt 3
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 input Ljava/lang/StringBuffer;
1 7 1 dest Ljava/lang/StringBuffer;
2 6 2 i I
MethodParameters:
Name Flags
input
private static boolean isAllASCII(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 8
3: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 4: iload 3
bipush 127
if_icmple 7
5: iconst_0
istore 1
6: goto 9
end local 3 7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 2 9: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 input Ljava/lang/String;
1 10 1 isASCII Z
2 9 2 i I
4 7 3 c I
MethodParameters:
Name Flags
input
}
SourceFile: "HostnameChecker.java"
NestMembers:
sun.security.util.HostnameChecker$1
InnerClasses:
public final Form = java.text.Normalizer$Form of java.text.Normalizer
sun.security.util.HostnameChecker$1