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, boolean);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.security.cert.CertificateException
dup
ldc "Hostname or IP address is undefined."
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.security.util.HostnameChecker.isIpAddress:(Ljava/lang/String;)Z
ifeq 5
3: aload 1
aload 2
invokestatic sun.security.util.HostnameChecker.matchIP:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iload 3
invokevirtual sun.security.util.HostnameChecker.matchDNS:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Z)V
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/util/HostnameChecker;
0 7 1 expectedName Ljava/lang/String;
0 7 2 cert Ljava/security/cert/X509Certificate;
0 7 3 chainsToPublicCA Z
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedName
cert
chainsToPublicCA
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=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokevirtual sun.security.util.HostnameChecker.match:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/util/HostnameChecker;
0 2 1 expectedName Ljava/lang/String;
0 2 2 cert Ljava/security/cert/X509Certificate;
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedName
cert
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, boolean);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new javax.net.ssl.SNIHostName
aload 1
invokespecial javax.net.ssl.SNIHostName.<init>:(Ljava/lang/String;)V
1: goto 6
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
2: astore 4
start local 4 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 4
5: invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 4
start local 4 7: aload 4
ifnull 21
8: iconst_0
istore 5
start local 5 9: aload 4
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 16
StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate int java.util.Collection int top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 6
start local 6 11: aload 6
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 5
13: aload 6
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 14: aload 0
aload 1
aload 8
iload 3
invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;Z)Z
ifeq 16
15: return
end local 8 end local 6 16: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
17: iload 5
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 5 21: StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate int java.util.Collection
StackMap stack:
aload 2
invokestatic sun.security.util.HostnameChecker.getSubjectX500Name:(Ljava/security/cert/X509Certificate;)Lsun/security/x509/X500Name;
astore 5
start local 5 22: aload 5
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 6
start local 6 25: aload 6
ifnull 32
26: aload 0
aload 1
aload 6
invokevirtual sun.security.util.DerValue.getAsString:()Ljava/lang/String;
27: iload 3
28: invokevirtual sun.security.util.HostnameChecker.isMatched:(Ljava/lang/String;Ljava/lang/String;Z)Z
29: ifeq 32
30: return
31: StackMap locals: sun.security.util.HostnameChecker java.lang.String java.security.cert.X509Certificate int java.util.Collection sun.security.x509.X500Name sun.security.util.DerValue
StackMap stack: java.io.IOException
pop
32: 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 7
start local 7 33: new java.security.cert.CertificateException
dup
aload 7
invokespecial java.security.cert.CertificateException.<init>:(Ljava/lang/String;)V
athrow
end local 7 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 34 0 this Lsun/security/util/HostnameChecker;
0 34 1 expectedName Ljava/lang/String;
0 34 2 cert Ljava/security/cert/X509Certificate;
0 34 3 chainsToPublicCA Z
3 6 4 iae Ljava/lang/IllegalArgumentException;
7 34 4 subjAltNames Ljava/util/Collection<Ljava/util/List<*>;>;
9 21 5 foundDNS Z
11 16 6 next Ljava/util/List<*>;
14 16 8 dnsName Ljava/lang/String;
22 34 5 subjectName Lsun/security/x509/X500Name;
25 34 6 derValue Lsun/security/util/DerValue;
33 34 7 msg Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
26 30 31 Class java.io.IOException
Exceptions:
throws java.security.cert.CertificateException
MethodParameters:
Name Flags
expectedName
cert
chainsToPublicCA
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, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Z)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic java.net.IDN.toASCII:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.net.IDN.toUnicode:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 2
invokestatic java.net.IDN.toASCII:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.net.IDN.toUnicode:(Ljava/lang/String;)Ljava/lang/String;
astore 2
2: goto 7
StackMap locals:
StackMap stack: java.lang.RuntimeException
3: astore 4
start local 4 4: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 6
5: new java.lang.StringBuilder
dup
ldc "Failed to normalize to Unicode: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
6: StackMap locals: java.lang.RuntimeException
StackMap stack:
iconst_0
ireturn
end local 4 7: StackMap locals:
StackMap stack:
aload 2
iload 3
invokestatic sun.security.util.HostnameChecker.hasIllegalWildcard:(Ljava/lang/String;Z)Z
ifeq 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
new javax.net.ssl.SNIHostName
aload 2
bipush 42
bipush 122
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokespecial javax.net.ssl.SNIHostName.<init>:(Ljava/lang/String;)V
10: goto 13
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
11: pop
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.util.HostnameChecker.checkType:B
iconst_1
if_icmpne 15
14: aload 1
aload 2
invokestatic sun.security.util.HostnameChecker.matchAllWildcards:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
15: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.util.HostnameChecker.checkType:B
iconst_2
if_icmpne 17
16: aload 1
aload 2
invokestatic sun.security.util.HostnameChecker.matchLeftmostWildcard:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
17: 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 18 0 this Lsun/security/util/HostnameChecker;
0 18 1 name Ljava/lang/String;
0 18 2 template Ljava/lang/String;
0 18 3 chainsToPublicCA Z
4 7 4 re Ljava/lang/RuntimeException;
Exception table:
from to target type
0 2 3 Class java.lang.RuntimeException
9 10 11 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
name
template
chainsToPublicCA
private static boolean hasIllegalWildcard(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
aload 0
ldc "*."
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
1: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 6
2: new java.lang.StringBuilder
dup
ldc "Certificate domain name has illegal single wildcard character: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
5: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
iconst_1
ireturn
7: StackMap locals:
StackMap stack:
aload 0
ldc "*"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 2
start local 2 8: iload 2
iconst_m1
if_icmpne 10
9: iconst_0
ireturn
10: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 11: aload 3
ldc "."
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 12: iload 4
iconst_m1
if_icmpne 19
13: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 18
14: new java.lang.StringBuilder
dup
ldc "Certificate domain name has illegal wildcard, no dot after wildcard character: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
15: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
17: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
18: StackMap locals: java.lang.String int
StackMap stack:
iconst_1
ireturn
19: StackMap locals:
StackMap stack:
iload 1
ifne 21
20: iconst_0
ireturn
21: StackMap locals:
StackMap stack:
aload 3
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
start local 5 22: new java.lang.StringBuilder
dup
ldc "z."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.security.util.RegisteredDomain.from:(Ljava/lang/String;)Ljava/util/Optional;
23: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
sun/security/util/HostnameChecker.lambda$0(Lsun/security/util/RegisteredDomain;)Z (6)
(Lsun/security/util/RegisteredDomain;)Z
invokevirtual java.util.Optional.filter:(Ljava/util/function/Predicate;)Ljava/util/Optional;
24: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
sun/security/util/RegisteredDomain.publicSuffix()Ljava/lang/String; (9 itf)
(Lsun/security/util/RegisteredDomain;)Ljava/lang/String;
invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
25: astore 6
start local 6 26: aload 6
ifnonnull 28
27: iconst_0
ireturn
28: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 5
aload 6
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 35
29: getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 34
30: new java.lang.StringBuilder
dup
ldc "Certificate domain name has illegal wildcard for top-level public suffix: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
31: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
33: invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
34: StackMap locals:
StackMap stack:
iconst_1
ireturn
35: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 template Ljava/lang/String;
0 36 1 chainsToPublicCA Z
8 36 2 lastWildcardIndex I
11 36 3 afterWildcard Ljava/lang/String;
12 36 4 firstDotIndex I
22 36 5 wildcardedDomain Ljava/lang/String;
26 36 6 templateDomainSuffix Ljava/lang/String;
MethodParameters:
Name Flags
template
chainsToPublicCA
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 boolean lambda$0(sun.security.util.RegisteredDomain);
descriptor: (Lsun/security/util/RegisteredDomain;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface sun.security.util.RegisteredDomain.type:()Lsun/security/util/RegisteredDomain$Type;
getstatic sun.security.util.RegisteredDomain$Type.ICANN:Lsun/security/util/RegisteredDomain$Type;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 d Lsun/security/util/RegisteredDomain;
}
SourceFile: "HostnameChecker.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Type = sun.security.util.RegisteredDomain$Type of sun.security.util.RegisteredDomain