public class org.eclipse.jetty.util.ssl.X509
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.ssl.X509
super_class: java.lang.Object
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int KEY_USAGE__KEY_CERT_SIGN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int SUBJECT_ALTERNATIVE_NAMES__DNS_NAME;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private final java.security.cert.X509Certificate _x509;
descriptor: Ljava/security/cert/X509Certificate;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String _alias;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.lang.String> _hosts;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private final java.util.Set<java.lang.String> _wilds;
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/eclipse/jetty/util/ssl/X509;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/eclipse/jetty/util/log/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static boolean isCertSign(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.security.cert.X509Certificate.getKeyUsage:()[Z
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
arraylength
iconst_5
if_icmpgt 3
2: StackMap locals: boolean[]
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
iconst_5
baload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 x509 Ljava/security/cert/X509Certificate;
1 4 1 keyUsage [Z
MethodParameters:
Name Flags
x509
public void <init>(java.lang.String, java.security.cert.X509Certificate);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putfield org.eclipse.jetty.util.ssl.X509._hosts:Ljava/util/Set;
2: aload 0
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putfield org.eclipse.jetty.util.ssl.X509._wilds:Ljava/util/Set;
3: aload 0
aload 1
putfield org.eclipse.jetty.util.ssl.X509._alias:Ljava/lang/String;
4: aload 0
aload 2
putfield org.eclipse.jetty.util.ssl.X509._x509:Ljava/security/cert/X509Certificate;
5: aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 3
start local 3 6: aload 3
ifnull 16
7: aload 3
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 15
StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 4
start local 4 9: aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Number
invokevirtual java.lang.Number.intValue:()I
iconst_2
if_icmpne 15
10: aload 4
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 6
start local 6 11: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 13
12: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Certificate SAN alias={} CN={} in {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 6
aastore
dup
iconst_2
aload 0
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
13: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection java.util.List java.util.Iterator java.lang.String
StackMap stack:
aload 6
ifnull 15
14: aload 0
aload 6
invokevirtual org.eclipse.jetty.util.ssl.X509.addName:(Ljava/lang/String;)V
end local 6 end local 4 15: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
16: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection
StackMap stack:
new javax.naming.ldap.LdapName
dup
aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectX500Principal:()Ljavax/security/auth/x500/X500Principal;
ldc "RFC2253"
invokevirtual javax.security.auth.x500.X500Principal.getName:(Ljava/lang/String;)Ljava/lang/String;
invokespecial javax.naming.ldap.LdapName.<init>:(Ljava/lang/String;)V
astore 4
start local 4 17: aload 4
invokevirtual javax.naming.ldap.LdapName.getRdns:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 25
StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection javax.naming.ldap.LdapName top java.util.Iterator
StackMap stack:
18: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.naming.ldap.Rdn
astore 5
start local 5 19: aload 5
invokevirtual javax.naming.ldap.Rdn.getType:()Ljava/lang/String;
ldc "CN"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 25
20: aload 5
invokevirtual javax.naming.ldap.Rdn.getValue:()Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
start local 7 21: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 23
22: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Certificate CN alias={} CN={} in {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 7
aastore
dup
iconst_2
aload 0
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
23: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection javax.naming.ldap.LdapName javax.naming.ldap.Rdn java.util.Iterator java.lang.String
StackMap stack:
aload 7
ifnull 25
aload 7
ldc "."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 25
aload 7
ldc " "
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 25
24: aload 0
aload 7
invokevirtual org.eclipse.jetty.util.ssl.X509.addName:(Ljava/lang/String;)V
end local 7 end local 5 25: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection javax.naming.ldap.LdapName top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 27 1 alias Ljava/lang/String;
0 27 2 x509 Ljava/security/cert/X509Certificate;
6 27 3 altNames Ljava/util/Collection<Ljava/util/List<*>;>;
9 15 4 list Ljava/util/List<*>;
11 15 6 cn Ljava/lang/String;
17 27 4 name Ljavax/naming/ldap/LdapName;
19 25 5 rdn Ljavax/naming/ldap/Rdn;
21 25 7 cn Ljava/lang/String;
Exceptions:
throws java.security.cert.CertificateParsingException, javax.naming.InvalidNameException
MethodParameters:
Name Flags
alias
x509
protected void addName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.eclipse.jetty.util.StringUtil.asciiToLowerCase:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 1
ldc "*."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
getfield org.eclipse.jetty.util.ssl.X509._wilds:Ljava/util/Set;
aload 1
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.ssl.X509._hosts:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 5 1 cn Ljava/lang/String;
MethodParameters:
Name Flags
cn
public java.lang.String getAlias();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.ssl.X509._alias:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/ssl/X509;
public java.security.cert.X509Certificate getCertificate();
descriptor: ()Ljava/security/cert/X509Certificate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.ssl.X509._x509:Ljava/security/cert/X509Certificate;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/ssl/X509;
public java.util.Set<java.lang.String> getHosts();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.ssl.X509._hosts:Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/ssl/X509;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public java.util.Set<java.lang.String> getWilds();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.ssl.X509._wilds:Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/ssl/X509;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public boolean matches(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.eclipse.jetty.util.StringUtil.asciiToLowerCase:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 0
getfield org.eclipse.jetty.util.ssl.X509._hosts:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 2
aload 0
getfield org.eclipse.jetty.util.ssl.X509._wilds:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 4: iload 2
iflt 8
5: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 6: aload 0
getfield org.eclipse.jetty.util.ssl.X509._wilds:Ljava/util/Set;
aload 3
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 8
7: iconst_1
ireturn
end local 3 8: StackMap locals: int
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 9 1 host Ljava/lang/String;
4 9 2 dot I
6 8 3 domain Ljava/lang/String;
MethodParameters:
Name Flags
host
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "%s@%x(%s,h=%s,w=%s)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
1: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
2: aload 0
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
3: aload 0
getfield org.eclipse.jetty.util.ssl.X509._alias:Ljava/lang/String;
aastore
dup
iconst_3
4: aload 0
getfield org.eclipse.jetty.util.ssl.X509._hosts:Ljava/util/Set;
aastore
dup
iconst_4
5: aload 0
getfield org.eclipse.jetty.util.ssl.X509._wilds:Ljava/util/Set;
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/util/ssl/X509;
}
SourceFile: "X509.java"