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
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new sun.security.util.HostnameChecker
dup
iconst_1
invokespecial sun.security.util.HostnameChecker.<init>:(B)V
1: putstatic sun.security.util.HostnameChecker.INSTANCE_TLS:Lsun/security/util/HostnameChecker;
2: new sun.security.util.HostnameChecker
dup
iconst_2
invokespecial sun.security.util.HostnameChecker.<init>:(B)V
3: putstatic sun.security.util.HostnameChecker.INSTANCE_LDAP:Lsun/security/util/HostnameChecker;
4: return
LocalVariableTable:
Start End Slot Name Signature
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, javax.security.auth.kerberos.KerberosPrincipal);
descriptor: (Ljava/lang/String;Ljavax/security/auth/kerberos/KerberosPrincipal;)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:(Ljavax/security/auth/kerberos/KerberosPrincipal;)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 Ljavax/security/auth/kerberos/KerberosPrincipal;
1 2 2 hostName Ljava/lang/String;
MethodParameters:
Name Flags
expectedName
principal
public static java.lang.String getServerName(javax.security.auth.kerberos.KerberosPrincipal);
descriptor: (Ljavax/security/auth/kerberos/KerberosPrincipal;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: new sun.security.krb5.PrincipalName
dup
aload 0
invokevirtual javax.security.auth.kerberos.KerberosPrincipal.getName:()Ljava/lang/String;
4: iconst_3
5: invokespecial sun.security.krb5.PrincipalName.<init>:(Ljava/lang/String;I)V
6: astore 2
start local 2 7: aload 2
invokevirtual sun.security.krb5.PrincipalName.getNameStrings:()[Ljava/lang/String;
astore 3
start local 3 8: aload 3
arraylength
iconst_2
if_icmplt 12
9: aload 3
iconst_1
aaload
astore 1
end local 3 end local 2 10: goto 12
StackMap locals: javax.security.auth.kerberos.KerberosPrincipal java.lang.String
StackMap stack: java.lang.Exception
11: pop
12: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 principal Ljavax/security/auth/kerberos/KerberosPrincipal;
3 13 1 hostName Ljava/lang/String;
7 10 2 princName Lsun/security/krb5/PrincipalName;
8 10 3 nameParts [Ljava/lang/String;
Exception table:
from to target type
3 10 11 Class java.lang.Exception
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 11
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 11
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
end local 5 end local 3 11: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
12: 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
13: 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;
14: 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 15 0 expectedIP Ljava/lang/String;
0 15 1 cert Ljava/security/cert/X509Certificate;
1 15 2 subjAltNames Ljava/util/Collection<Ljava/util/List<*>;>;
7 11 3 next Ljava/util/List<*>;
9 11 5 ipAddress Ljava/lang/String;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedIP
cert
private static void checkHostName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "Server name value of host_name cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_2
invokestatic java.net.IDN.toASCII:(Ljava/lang/String;I)Ljava/lang/String;
astore 0
3: aload 0
ldc "US-ASCII"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 1
start local 1 4: aload 1
ifnonnull 8
5: new java.lang.NullPointerException
dup
6: ldc "Server name encoded value cannot be null"
7: invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: byte[]
StackMap stack:
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 12
9: new java.lang.IllegalArgumentException
dup
10: ldc "Server name value of host_name cannot be empty"
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 0
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 16
13: new java.lang.IllegalArgumentException
dup
14: ldc "Server name value of host_name cannot have the trailing dot"
15: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 hostname Ljava/lang/String;
4 17 1 encoded [B
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
hostname
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 29
26: aload 0
aload 1
aload 5
invokevirtual sun.security.util.DerValue.getAsString:()Ljava/lang/String;
invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 29
27: return
28: 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
29: 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 30: 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 31 0 this Lsun/security/util/HostnameChecker;
0 31 1 expectedName Ljava/lang/String;
0 31 2 cert Ljava/security/cert/X509Certificate;
3 6 3 iae Ljava/lang/IllegalArgumentException;
7 31 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 31 4 subjectName Lsun/security/x509/X500Name;
25 31 5 derValue Lsun/security/util/DerValue;
30 31 6 msg Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
26 27 28 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 120
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
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 0
1: aload 1
invokevirtual java.lang.String.toLowerCase:()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
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 0
1: aload 1
invokevirtual java.lang.String.toLowerCase:()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
}
SourceFile: "HostnameChecker.java"