public final class org.apache.http.conn.ssl.DefaultHostnameVerifier implements javax.net.ssl.HostnameVerifier
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.http.conn.ssl.DefaultHostnameVerifier
super_class: java.lang.Object
{
private final org.apache.commons.logging.Log log;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.http.conn.util.PublicSuffixMatcher publicSuffixMatcher;
descriptor: Lorg/apache/http/conn/util/PublicSuffixMatcher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$org$apache$http$conn$ssl$DefaultHostnameVerifier$HostNameType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(org.apache.http.conn.util.PublicSuffixMatcher);
descriptor: (Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.apache.http.conn.ssl.DefaultHostnameVerifier.log:Lorg/apache/commons/logging/Log;
2: aload 0
aload 1
putfield org.apache.http.conn.ssl.DefaultHostnameVerifier.publicSuffixMatcher:Lorg/apache/http/conn/util/PublicSuffixMatcher;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/http/conn/ssl/DefaultHostnameVerifier;
0 4 1 publicSuffixMatcher Lorg/apache/http/conn/util/PublicSuffixMatcher;
MethodParameters:
Name Flags
publicSuffixMatcher final
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokespecial org.apache.http.conn.ssl.DefaultHostnameVerifier.<init>:(Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/conn/ssl/DefaultHostnameVerifier;
public boolean verify(java.lang.String, javax.net.ssl.SSLSession);
descriptor: (Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface javax.net.ssl.SSLSession.getPeerCertificates:()[Ljava/security/cert/Certificate;
astore 3
start local 3 1: aload 3
iconst_0
aaload
checkcast java.security.cert.X509Certificate
astore 4
start local 4 2: aload 0
aload 1
aload 4
invokevirtual org.apache.http.conn.ssl.DefaultHostnameVerifier.verify:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
3: iconst_1
ireturn
end local 4 end local 3 4: StackMap locals:
StackMap stack: javax.net.ssl.SSLException
astore 3
start local 3 5: aload 0
getfield org.apache.http.conn.ssl.DefaultHostnameVerifier.log:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 7
6: aload 0
getfield org.apache.http.conn.ssl.DefaultHostnameVerifier.log:Lorg/apache/commons/logging/Log;
aload 3
invokevirtual javax.net.ssl.SSLException.getMessage:()Ljava/lang/String;
aload 3
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
7: StackMap locals: javax.net.ssl.SSLException
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/http/conn/ssl/DefaultHostnameVerifier;
0 8 1 host Ljava/lang/String;
0 8 2 session Ljavax/net/ssl/SSLSession;
1 4 3 certs [Ljava/security/cert/Certificate;
2 4 4 x509 Ljava/security/cert/X509Certificate;
5 8 3 ex Ljavax/net/ssl/SSLException;
Exception table:
from to target type
0 3 4 Class javax.net.ssl.SSLException
MethodParameters:
Name Flags
host final
session final
public void verify(java.lang.String, java.security.cert.X509Certificate);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.determineHostFormat:(Ljava/lang/String;)Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
astore 3
start local 3 1: aload 2
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.getSubjectAltNames:(Ljava/security/cert/X509Certificate;)Ljava/util/List;
astore 4
start local 4 2: aload 4
ifnull 10
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 10
3: invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.$SWITCH_TABLE$org$apache$http$conn$ssl$DefaultHostnameVerifier$HostNameType:()[I
aload 3
invokevirtual org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 4
2: 6
default: 8
}
4: StackMap locals: org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType java.util.List
StackMap stack:
aload 1
aload 4
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIPAddress:(Ljava/lang/String;Ljava/util/List;)V
5: goto 17
6: StackMap locals:
StackMap stack:
aload 1
aload 4
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIPv6Address:(Ljava/lang/String;Ljava/util/List;)V
7: goto 17
8: StackMap locals:
StackMap stack:
aload 1
aload 4
aload 0
getfield org.apache.http.conn.ssl.DefaultHostnameVerifier.publicSuffixMatcher:Lorg/apache/http/conn/util/PublicSuffixMatcher;
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchDNSName:(Ljava/lang/String;Ljava/util/List;Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
9: goto 17
10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
astore 5
start local 5 11: aload 5
ldc "RFC2253"
invokevirtual javax.security.auth.x500.X500Principal.getName:(Ljava/lang/String;)Ljava/lang/String;
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.extractCN:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 12: aload 6
ifnonnull 16
13: new javax.net.ssl.SSLException
dup
new java.lang.StringBuilder
dup
ldc "Certificate subject for <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "> doesn't contain "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: ldc "a common name and does not have alternative names"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial javax.net.ssl.SSLException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals: javax.security.auth.x500.X500Principal java.lang.String
StackMap stack:
aload 1
aload 6
aload 0
getfield org.apache.http.conn.ssl.DefaultHostnameVerifier.publicSuffixMatcher:Lorg/apache/http/conn/util/PublicSuffixMatcher;
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchCN:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
end local 6 end local 5 17: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/http/conn/ssl/DefaultHostnameVerifier;
0 18 1 host Ljava/lang/String;
0 18 2 cert Ljava/security/cert/X509Certificate;
1 18 3 hostType Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
2 18 4 subjectAlts Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;
11 17 5 subjectPrincipal Ljavax/security/auth/x500/X500Principal;
12 17 6 cn Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
host final
cert final
static void matchIPAddress(java.lang.String, java.util.List<org.apache.http.conn.ssl.SubjectName>);
descriptor: (Ljava/lang/String;Ljava/util/List;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.http.conn.ssl.SubjectName
astore 3
start local 3 3: aload 3
invokevirtual org.apache.http.conn.ssl.SubjectName.getType:()I
bipush 7
if_icmpne 6
4: aload 0
aload 3
invokevirtual org.apache.http.conn.ssl.SubjectName.getValue:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: return
end local 3 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 2 8: new javax.net.ssl.SSLPeerUnverifiedException
dup
new java.lang.StringBuilder
dup
ldc "Certificate for <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "> doesn't match any "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc "of the subject alternative names: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 host Ljava/lang/String;
0 11 1 subjectAlts Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;
1 8 2 i I
3 6 3 subjectAlt Lorg/apache/http/conn/ssl/SubjectName;
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/lang/String;Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;)V
MethodParameters:
Name Flags
host final
subjectAlts final
static void matchIPv6Address(java.lang.String, java.util.List<org.apache.http.conn.ssl.SubjectName>);
descriptor: (Ljava/lang/String;Ljava/util/List;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.normaliseAddress:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 9
3: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.http.conn.ssl.SubjectName
astore 4
start local 4 4: aload 4
invokevirtual org.apache.http.conn.ssl.SubjectName.getType:()I
bipush 7
if_icmpne 8
5: aload 4
invokevirtual org.apache.http.conn.ssl.SubjectName.getValue:()Ljava/lang/String;
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.normaliseAddress:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 6: aload 2
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: return
end local 5 end local 4 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 3
end local 3 10: new javax.net.ssl.SSLPeerUnverifiedException
dup
new java.lang.StringBuilder
dup
ldc "Certificate for <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "> doesn't match any "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "of the subject alternative names: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 host Ljava/lang/String;
0 13 1 subjectAlts Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;
1 13 2 normalisedHost Ljava/lang/String;
2 10 3 i I
4 8 4 subjectAlt Lorg/apache/http/conn/ssl/SubjectName;
6 8 5 normalizedSubjectAlt Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/lang/String;Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;)V
MethodParameters:
Name Flags
host final
subjectAlts final
static void matchDNSName(java.lang.String, java.util.List<org.apache.http.conn.ssl.SubjectName>, org.apache.http.conn.util.PublicSuffixMatcher);
descriptor: (Ljava/lang/String;Ljava/util/List;Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 9
3: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.http.conn.ssl.SubjectName
astore 5
start local 5 4: aload 5
invokevirtual org.apache.http.conn.ssl.SubjectName.getType:()I
iconst_2
if_icmpne 8
5: aload 5
invokevirtual org.apache.http.conn.ssl.SubjectName.getValue:()Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 6
start local 6 6: aload 3
aload 6
aload 2
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIdentityStrict:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;)Z
ifeq 8
7: return
end local 6 end local 5 8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 3
end local 4 10: new javax.net.ssl.SSLPeerUnverifiedException
dup
new java.lang.StringBuilder
dup
ldc "Certificate for <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "> doesn't match any "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "of the subject alternative names: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 host Ljava/lang/String;
0 13 1 subjectAlts Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;
0 13 2 publicSuffixMatcher Lorg/apache/http/conn/util/PublicSuffixMatcher;
1 13 3 normalizedHost Ljava/lang/String;
2 10 4 i I
4 8 5 subjectAlt Lorg/apache/http/conn/ssl/SubjectName;
6 8 6 normalizedSubjectAlt Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/lang/String;Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
MethodParameters:
Name Flags
host final
subjectAlts final
publicSuffixMatcher final
static void matchCN(java.lang.String, java.lang.String, org.apache.http.conn.util.PublicSuffixMatcher);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 3
start local 3 1: aload 1
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 4
start local 4 2: aload 3
aload 4
aload 2
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIdentityStrict:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;)Z
ifne 6
3: new javax.net.ssl.SSLPeerUnverifiedException
dup
new java.lang.StringBuilder
dup
ldc "Certificate for <"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "> doesn't match "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "common name of the certificate subject: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial javax.net.ssl.SSLPeerUnverifiedException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String java.lang.String
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 host Ljava/lang/String;
0 7 1 cn Ljava/lang/String;
0 7 2 publicSuffixMatcher Lorg/apache/http/conn/util/PublicSuffixMatcher;
1 7 3 normalizedHost Ljava/lang/String;
2 7 4 normalizedCn Ljava/lang/String;
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
host final
cn final
publicSuffixMatcher final
static boolean matchDomainRoot(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
aload 0
invokevirtual java.lang.String.length:()I
aload 1
invokevirtual java.lang.String.length:()I
if_icmpeq 4
3: aload 0
aload 0
invokevirtual java.lang.String.length:()I
aload 1
invokevirtual java.lang.String.length:()I
isub
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 5
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 host Ljava/lang/String;
0 6 1 domainRoot Ljava/lang/String;
MethodParameters:
Name Flags
host final
domainRoot final
private static boolean matchIdentity(java.lang.String, java.lang.String, org.apache.http.conn.util.PublicSuffixMatcher, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 3
aload 0
ldc "."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 3
1: aload 0
aload 2
aload 1
getstatic org.apache.http.conn.util.DomainType.ICANN:Lorg/apache/http/conn/util/DomainType;
invokevirtual org.apache.http.conn.util.PublicSuffixMatcher.getDomainRoot:(Ljava/lang/String;Lorg/apache/http/conn/util/DomainType;)Ljava/lang/String;
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchDomainRoot:(Ljava/lang/String;Ljava/lang/String;)Z
ifne 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
bipush 42
invokevirtual java.lang.String.indexOf:(I)I
istore 4
start local 4 4: iload 4
iconst_m1
if_icmpeq 18
5: aload 1
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 6: aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
start local 6 7: aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifne 9
aload 0
aload 5
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals: int java.lang.String java.lang.String
StackMap stack:
aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifne 11
aload 0
aload 6
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iload 3
ifeq 17
12: aload 0
13: aload 5
invokevirtual java.lang.String.length:()I
aload 0
invokevirtual java.lang.String.length:()I
aload 6
invokevirtual java.lang.String.length:()I
isub
14: invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 15: aload 7
ldc "."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 17
16: iconst_0
ireturn
end local 7 17: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 6 end local 5 18: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 host Ljava/lang/String;
0 19 1 identity Ljava/lang/String;
0 19 2 publicSuffixMatcher Lorg/apache/http/conn/util/PublicSuffixMatcher;
0 19 3 strict Z
4 19 4 asteriskIdx I
6 18 5 prefix Ljava/lang/String;
7 18 6 suffix Ljava/lang/String;
15 17 7 remainder Ljava/lang/String;
MethodParameters:
Name Flags
host final
identity final
publicSuffixMatcher final
strict final
static boolean matchIdentity(java.lang.String, java.lang.String, org.apache.http.conn.util.PublicSuffixMatcher);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;)Z
flags: (0x0008) ACC_STATIC
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
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIdentity:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;Z)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 host Ljava/lang/String;
0 1 1 identity Ljava/lang/String;
0 1 2 publicSuffixMatcher Lorg/apache/http/conn/util/PublicSuffixMatcher;
MethodParameters:
Name Flags
host final
identity final
publicSuffixMatcher final
static boolean matchIdentity(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
iconst_0
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIdentity:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;Z)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 host Ljava/lang/String;
0 1 1 identity Ljava/lang/String;
MethodParameters:
Name Flags
host final
identity final
static boolean matchIdentityStrict(java.lang.String, java.lang.String, org.apache.http.conn.util.PublicSuffixMatcher);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;)Z
flags: (0x0008) ACC_STATIC
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_1
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIdentity:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;Z)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 host Ljava/lang/String;
0 1 1 identity Ljava/lang/String;
0 1 2 publicSuffixMatcher Lorg/apache/http/conn/util/PublicSuffixMatcher;
MethodParameters:
Name Flags
host final
identity final
publicSuffixMatcher final
static boolean matchIdentityStrict(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
iconst_1
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier.matchIdentity:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/conn/util/PublicSuffixMatcher;Z)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 host Ljava/lang/String;
0 1 1 identity Ljava/lang/String;
MethodParameters:
Name Flags
host final
identity final
static java.lang.String (java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new javax.naming.ldap.LdapName
dup
aload 0
invokespecial javax.naming.ldap.LdapName.<init>:(Ljava/lang/String;)V
astore 1
start local 1 3: aload 1
invokevirtual javax.naming.ldap.LdapName.getRdns:()Ljava/util/List;
astore 2
start local 2 4: aload 2
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 3
start local 3 5: goto 17
6: StackMap locals: javax.naming.ldap.LdapName java.util.List int
StackMap stack:
aload 2
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.naming.ldap.Rdn
astore 4
start local 4 7: aload 4
invokevirtual javax.naming.ldap.Rdn.toAttributes:()Ljavax/naming/directory/Attributes;
astore 5
start local 5 8: aload 5
ldc "cn"
invokeinterface javax.naming.directory.Attributes.get:(Ljava/lang/String;)Ljavax/naming/directory/Attribute;
astore 6
start local 6 9: aload 6
ifnull 16
10: aload 6
invokeinterface javax.naming.directory.Attribute.get:()Ljava/lang/Object;
astore 7
start local 7 11: aload 7
ifnull 16
12: aload 7
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
13: areturn
end local 7 14: StackMap locals: java.lang.String javax.naming.ldap.LdapName java.util.List int javax.naming.ldap.Rdn javax.naming.directory.Attributes javax.naming.directory.Attribute
StackMap stack: java.util.NoSuchElementException
pop
goto 16
15: StackMap locals:
StackMap stack: javax.naming.NamingException
pop
end local 6 end local 5 end local 4 16: StackMap locals:
StackMap stack:
iinc 3 -1
StackMap locals:
StackMap stack:
17: iload 3
ifge 6
end local 3 18: aconst_null
areturn
end local 2 end local 1 19: StackMap locals: java.lang.String
StackMap stack: javax.naming.InvalidNameException
pop
20: new javax.net.ssl.SSLException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " is not a valid X500 distinguished name"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.net.ssl.SSLException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 subjectPrincipal Ljava/lang/String;
3 19 1 subjectDN Ljavax/naming/ldap/LdapName;
4 19 2 rdns Ljava/util/List<Ljavax/naming/ldap/Rdn;>;
5 18 3 i I
7 16 4 rds Ljavax/naming/ldap/Rdn;
8 16 5 attributes Ljavax/naming/directory/Attributes;
9 16 6 cn Ljavax/naming/directory/Attribute;
11 14 7 value Ljava/lang/Object;
Exception table:
from to target type
10 13 14 Class java.util.NoSuchElementException
10 13 15 Class javax.naming.NamingException
2 13 19 Class javax.naming.InvalidNameException
14 18 19 Class javax.naming.InvalidNameException
Exceptions:
throws javax.net.ssl.SSLException
MethodParameters:
Name Flags
subjectPrincipal final
static org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType determineHostFormat(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.apache.http.conn.util.InetAddressUtils.isIPv4Address:(Ljava/lang/String;)Z
ifeq 2
1: getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.IPv4:Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
areturn
2: StackMap locals:
StackMap stack:
aload 0
astore 1
start local 1 3: aload 1
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
aload 1
ldc "]"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokestatic org.apache.http.conn.util.InetAddressUtils.isIPv6Address:(Ljava/lang/String;)Z
ifeq 7
6: getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.IPv6:Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
areturn
7: StackMap locals:
StackMap stack:
getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.DNS:Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 host Ljava/lang/String;
3 8 1 s Ljava/lang/String;
MethodParameters:
Name Flags
host final
static java.util.List<org.apache.http.conn.ssl.SubjectName> getSubjectAltNames(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 1
start local 1 1: aload 1
ifnonnull 4
2: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
3: areturn
4: StackMap locals: java.util.Collection
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 5: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 17
StackMap locals: java.security.cert.X509Certificate java.util.Collection java.util.List 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
invokeinterface java.util.List.size:()I
iconst_2
if_icmplt 8
aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Integer
goto 9
StackMap locals: java.security.cert.X509Certificate java.util.Collection java.util.List java.util.List java.util.Iterator
StackMap stack:
8: aconst_null
StackMap locals:
StackMap stack: java.lang.Integer
9: astore 5
start local 5 10: aload 5
ifnull 17
11: aload 5
invokevirtual java.lang.Integer.intValue:()I
iconst_2
if_icmpeq 12
aload 5
invokevirtual java.lang.Integer.intValue:()I
bipush 7
if_icmpne 17
12: StackMap locals: java.lang.Integer
StackMap stack:
aload 3
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 6
start local 6 13: aload 6
instanceof java.lang.String
ifeq 16
14: aload 2
new org.apache.http.conn.ssl.SubjectName
dup
aload 6
checkcast java.lang.String
aload 5
invokevirtual java.lang.Integer.intValue:()I
invokespecial org.apache.http.conn.ssl.SubjectName.<init>:(Ljava/lang/String;I)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: goto 17
StackMap locals: java.lang.Object
StackMap stack:
16: aload 6
instanceof byte[]
pop
end local 6 end local 5 end local 3 17: StackMap locals: java.security.cert.X509Certificate java.util.Collection java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
18: aload 2
19: areturn
end local 2 end local 1 20: StackMap locals: java.security.cert.X509Certificate
StackMap stack: java.security.cert.CertificateParsingException
pop
21: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 cert Ljava/security/cert/X509Certificate;
1 20 1 entries Ljava/util/Collection<Ljava/util/List<*>;>;
5 20 2 result Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;
7 17 3 entry Ljava/util/List<*>;
10 17 5 type Ljava/lang/Integer;
13 17 6 o Ljava/lang/Object;
Exception table:
from to target type
0 3 20 Class java.security.cert.CertificateParsingException
4 19 20 Class java.security.cert.CertificateParsingException
Signature: (Ljava/security/cert/X509Certificate;)Ljava/util/List<Lorg/apache/http/conn/ssl/SubjectName;>;
MethodParameters:
Name Flags
cert final
static java.lang.String normaliseAddress(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 1
start local 1 3: aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
4: areturn
end local 1 5: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
6: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 hostname Ljava/lang/String;
3 5 1 inetAddress Ljava/net/InetAddress;
Exception table:
from to target type
2 4 5 Class java.net.UnknownHostException
MethodParameters:
Name Flags
hostname final
static int[] $SWITCH_TABLE$org$apache$http$conn$ssl$DefaultHostnameVerifier$HostNameType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier.$SWITCH_TABLE$org$apache$http$conn$ssl$DefaultHostnameVerifier$HostNameType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.values:()[Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.DNS:Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
invokevirtual org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.IPv4:Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
invokevirtual org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.IPv6:Lorg/apache/http/conn/ssl/DefaultHostnameVerifier$HostNameType;
invokevirtual org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic org.apache.http.conn.ssl.DefaultHostnameVerifier.$SWITCH_TABLE$org$apache$http$conn$ssl$DefaultHostnameVerifier$HostNameType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
SourceFile: "DefaultHostnameVerifier.java"
NestMembers:
org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType
InnerClasses:
final HostNameType = org.apache.http.conn.ssl.DefaultHostnameVerifier$HostNameType of org.apache.http.conn.ssl.DefaultHostnameVerifier
RuntimeInvisibleAnnotations:
org.apache.http.annotation.Contract(threading = org.apache.http.annotation.ThreadingBehavior.IMMUTABLE_CONDITIONAL:Lorg/apache/http/annotation/ThreadingBehavior;)