public class org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer implements org.bouncycastle.est.jcajce.JsseHostnameAuthorizer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer
super_class: java.lang.Object
{
private static java.util.logging.Logger LOG;
descriptor: Ljava/util/logging/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final java.util.Set<java.lang.String> knownSuffixes;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/bouncycastle/est/jcajce/JsseDefaultHostnameAuthorizer;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.LOG:Ljava/util/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.knownSuffixes:Ljava/util/Set;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/est/jcajce/JsseDefaultHostnameAuthorizer;
0 3 1 knownSuffixes Ljava/util/Set<Ljava/lang/String;>;
Signature: (Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
knownSuffixes
public boolean verified(java.lang.String, javax.net.ssl.SSLSession);
descriptor: (Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: ldc "X509"
invokestatic java.security.cert.CertificateFactory.getInstance:(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
astore 3
start local 3 1: aload 3
2: new java.io.ByteArrayInputStream
dup
aload 2
invokeinterface javax.net.ssl.SSLSession.getPeerCertificates:()[Ljava/security/cert/Certificate;
iconst_0
aaload
invokevirtual java.security.cert.Certificate.getEncoded:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
3: invokevirtual java.security.cert.CertificateFactory.generateCertificate:(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
4: checkcast java.security.cert.X509Certificate
astore 4
start local 4 5: aload 0
aload 1
aload 4
invokevirtual org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.verify:(Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z
6: ireturn
end local 4 end local 3 7: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 8: aload 3
instanceof org.bouncycastle.est.ESTException
ifeq 10
9: aload 3
checkcast org.bouncycastle.est.ESTException
athrow
10: StackMap locals: java.lang.Exception
StackMap stack:
new org.bouncycastle.est.ESTException
dup
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bouncycastle/est/jcajce/JsseDefaultHostnameAuthorizer;
0 11 1 name Ljava/lang/String;
0 11 2 context Ljavax/net/ssl/SSLSession;
1 7 3 fac Ljava/security/cert/CertificateFactory;
5 7 4 cert Ljava/security/cert/X509Certificate;
8 11 3 ex Ljava/lang/Exception;
Exception table:
from to target type
0 6 7 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
context
public boolean verify(java.lang.String, java.security.cert.X509Certificate);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 3
start local 3 1: aload 3
ifnull 21
2: aload 3
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
start local 4 3: goto 17
4: StackMap locals: java.util.Collection java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 5
start local 5 5: aload 5
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Number
invokevirtual java.lang.Number.intValue:()I
istore 6
start local 6 6: iload 6
lookupswitch { // 2
2: 7
7: 9
default: 11
}
7: StackMap locals: java.util.List int
StackMap stack:
aload 1
aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aload 0
getfield org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.knownSuffixes:Ljava/util/Set;
invokestatic org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.isValidNameMatch:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;)Z
ifeq 17
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 1
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifeq 17
10: iconst_1
ireturn
11: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.LOG:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.INFO:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 17
12: aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
instanceof byte[]
ifeq 15
13: aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast byte[]
invokestatic org.bouncycastle.util.encoders.Hex.toHexString:([B)Ljava/lang/String;
astore 7
start local 7 14: goto 16
end local 7 15: StackMap locals:
StackMap stack:
aload 5
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
start local 7 16: StackMap locals: java.lang.String
StackMap stack:
getstatic org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.LOG:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.INFO:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "ignoring type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " value = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
end local 7 end local 6 end local 5 17: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 4 18: iconst_0
ireturn
end local 3 19: StackMap locals: org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer java.lang.String java.security.cert.X509Certificate
StackMap stack: java.lang.Exception
astore 3
start local 3 20: new org.bouncycastle.est.ESTException
dup
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.est.ESTException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 21: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
ifnonnull 23
22: iconst_0
ireturn
23: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
invokevirtual javax.security.auth.x500.X500Principal.getEncoded:()[B
invokestatic org.bouncycastle.asn1.x500.X500Name.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x500/X500Name;
invokevirtual org.bouncycastle.asn1.x500.X500Name.getRDNs:()[Lorg/bouncycastle/asn1/x500/RDN;
astore 3
start local 3 24: aload 3
arraylength
iconst_1
isub
istore 4
start local 4 25: goto 36
26: StackMap locals: org.bouncycastle.asn1.x500.RDN[] int
StackMap stack:
aload 3
iload 4
aaload
astore 5
start local 5 27: aload 5
invokevirtual org.bouncycastle.asn1.x500.RDN.getTypesAndValues:()[Lorg/bouncycastle/asn1/x500/AttributeTypeAndValue;
astore 6
start local 6 28: iconst_0
istore 7
start local 7 29: goto 34
30: StackMap locals: org.bouncycastle.asn1.x500.RDN org.bouncycastle.asn1.x500.AttributeTypeAndValue[] int
StackMap stack:
aload 6
iload 7
aaload
astore 8
start local 8 31: aload 8
invokevirtual org.bouncycastle.asn1.x500.AttributeTypeAndValue.getType:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
getstatic org.bouncycastle.asn1.x500.style.BCStyle.CN:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifeq 33
32: aload 1
aload 8
invokevirtual org.bouncycastle.asn1.x500.AttributeTypeAndValue.getValue:()Lorg/bouncycastle/asn1/ASN1Encodable;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aload 0
getfield org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.knownSuffixes:Ljava/util/Set;
invokestatic org.bouncycastle.est.jcajce.JsseDefaultHostnameAuthorizer.isValidNameMatch:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;)Z
ireturn
end local 8 33: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
34: iload 7
aload 6
arraylength
if_icmpne 30
end local 7 end local 6 end local 5 35: iinc 4 -1
StackMap locals:
StackMap stack:
36: iload 4
ifge 26
end local 4 37: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lorg/bouncycastle/est/jcajce/JsseDefaultHostnameAuthorizer;
0 38 1 name Ljava/lang/String;
0 38 2 cert Ljava/security/cert/X509Certificate;
1 19 3 n Ljava/util/Collection;
3 18 4 it Ljava/util/Iterator;
5 17 5 l Ljava/util/List;
6 17 6 type I
14 15 7 value Ljava/lang/String;
16 17 7 value Ljava/lang/String;
20 21 3 ex Ljava/lang/Exception;
24 38 3 rdNs [Lorg/bouncycastle/asn1/x500/RDN;
25 37 4 i I
27 35 5 rdn Lorg/bouncycastle/asn1/x500/RDN;
28 35 6 typesAndValues [Lorg/bouncycastle/asn1/x500/AttributeTypeAndValue;
29 35 7 j I
31 33 8 atv Lorg/bouncycastle/asn1/x500/AttributeTypeAndValue;
Exception table:
from to target type
0 8 19 Class java.lang.Exception
9 10 19 Class java.lang.Exception
11 18 19 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
cert
public static boolean isValidNameMatch(java.lang.String, java.lang.String, java.util.Set<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "*"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 24
1: aload 1
bipush 42
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 2: iload 3
aload 1
ldc "*"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
if_icmpne 23
3: aload 1
ldc ".."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 4
aload 1
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 42
if_icmpne 5
4: StackMap locals: int
StackMap stack:
iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 1
bipush 46
iload 3
invokevirtual java.lang.String.indexOf:(II)I
istore 4
start local 4 6: aload 2
ifnull 8
aload 2
aload 1
iload 4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.bouncycastle.util.Strings.toLowerCase:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 8
7: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Wildcard `"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "` matches known public suffix."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: int
StackMap stack:
aload 1
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.bouncycastle.util.Strings.toLowerCase:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 9: aload 0
invokestatic org.bouncycastle.util.Strings.toLowerCase:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 10: aload 6
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
11: iconst_0
ireturn
12: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 5
invokevirtual java.lang.String.length:()I
aload 6
invokevirtual java.lang.String.length:()I
if_icmple 14
13: iconst_0
ireturn
14: StackMap locals:
StackMap stack:
iload 3
ifle 19
15: aload 6
aload 1
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 18
aload 6
aload 5
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 18
16: aload 6
iload 3
aload 6
invokevirtual java.lang.String.length:()I
aload 5
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
ifge 17
iconst_1
ireturn
StackMap locals:
StackMap stack:
17: iconst_0
ireturn
18: StackMap locals:
StackMap stack:
iconst_0
ireturn
19: StackMap locals:
StackMap stack:
aload 6
iconst_0
aload 6
invokevirtual java.lang.String.length:()I
aload 5
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 20: aload 7
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
ifle 22
21: iconst_0
ireturn
22: StackMap locals: java.lang.String
StackMap stack:
aload 6
aload 5
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ireturn
end local 7 end local 6 end local 5 end local 4 23: StackMap locals: java.lang.String java.lang.String java.util.Set int
StackMap stack:
iconst_0
ireturn
end local 3 24: StackMap locals:
StackMap stack:
aload 0
aload 1
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 25 0 name Ljava/lang/String;
0 25 1 dnsName Ljava/lang/String;
0 25 2 suffixes Ljava/util/Set<Ljava/lang/String;>;
2 24 3 wildIndex I
6 23 4 dnsDotIndex I
9 23 5 end Ljava/lang/String;
10 23 6 loweredName Ljava/lang/String;
20 23 7 prefix Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Set<Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
name
dnsName
suffixes
}
SourceFile: "JsseDefaultHostnameAuthorizer.java"