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.slf4j.Logger LOG;
descriptor: Lorg/slf4j/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 static final int SUBJECT_ALTERNATIVE_NAMES__IP_ADDRESS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
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;>;
private final java.util.Set<java.net.InetAddress> _addresses;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/net/InetAddress;>;
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.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/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
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putfield org.eclipse.jetty.util.ssl.X509._addresses:Ljava/util/Set;
4: aload 0
aload 1
putfield org.eclipse.jetty.util.ssl.X509._alias:Ljava/lang/String;
5: aload 0
aload 2
putfield org.eclipse.jetty.util.ssl.X509._x509:Ljava/security/cert/X509Certificate;
6: aload 2
invokevirtual java.security.cert.X509Certificate.getSubjectAlternativeNames:()Ljava/util/Collection;
astore 3
start local 3 7: aload 3
ifnull 23
8: aload 3
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 22
StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection top java.util.Iterator
StackMap stack:
9: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.List
astore 4
start local 4 10: aload 4
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 11: iload 6
lookupswitch { // 2
2: 12
7: 17
default: 22
}
12: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate java.util.Collection java.util.List java.util.Iterator int
StackMap stack:
aload 4
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
start local 7 13: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 15
14: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/Logger;
ldc "Certificate alias={} SAN dns={} 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.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
15: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 7
invokevirtual org.eclipse.jetty.util.ssl.X509.addName:(Ljava/lang/String;)V
16: goto 22
end local 7 17: StackMap locals:
StackMap stack:
aload 4
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
start local 7 18: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 20
19: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/Logger;
ldc "Certificate alias={} SAN ip={} 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.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
20: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 7
invokevirtual org.eclipse.jetty.util.ssl.X509.addAddress:(Ljava/lang/String;)V
21: goto 22
end local 7 end local 6 end local 4 22: 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 9
23: 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 24: aload 4
invokevirtual javax.naming.ldap.LdapName.getRdns:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 31
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:
25: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.naming.ldap.Rdn
astore 5
start local 5 26: aload 5
invokevirtual javax.naming.ldap.Rdn.getType:()Ljava/lang/String;
ldc "CN"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 31
27: aload 5
invokevirtual javax.naming.ldap.Rdn.getValue:()Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
start local 7 28: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 30
29: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/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.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
30: 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 0
aload 7
invokevirtual org.eclipse.jetty.util.ssl.X509.addName:(Ljava/lang/String;)V
end local 7 end local 5 31: 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 25
end local 4 end local 3 32: goto 35
33: StackMap locals: org.eclipse.jetty.util.ssl.X509 java.lang.String java.security.cert.X509Certificate
StackMap stack: java.lang.Exception
astore 3
start local 3 34: new java.lang.IllegalArgumentException
dup
aload 3
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 35: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 36 1 alias Ljava/lang/String;
0 36 2 x509 Ljava/security/cert/X509Certificate;
7 32 3 altNames Ljava/util/Collection<Ljava/util/List<*>;>;
10 22 4 list Ljava/util/List<*>;
11 22 6 nameType I
13 17 7 name Ljava/lang/String;
18 22 7 address Ljava/lang/String;
24 32 4 name Ljavax/naming/ldap/LdapName;
26 31 5 rdn Ljavax/naming/ldap/Rdn;
28 31 7 cn Ljava/lang/String;
34 35 3 x Ljava/lang/Exception;
Exception table:
from to target type
6 32 33 Class java.lang.Exception
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
ifnull 5
1: aload 1
invokestatic org.eclipse.jetty.util.StringUtil.asciiToLowerCase:(Ljava/lang/String;)Ljava/lang/String;
astore 1
2: aload 1
ldc "*."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: 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 5
4: 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
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 6 1 cn Ljava/lang/String;
MethodParameters:
Name Flags
cn
private void addAddress(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.jetty.util.ssl.X509.toInetAddress:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 0
getfield org.eclipse.jetty.util.ssl.X509._addresses:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals: java.net.InetAddress
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 4 1 host Ljava/lang/String;
1 4 2 address Ljava/net/InetAddress;
MethodParameters:
Name Flags
host
private java.net.InetAddress toInetAddress(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/InetAddress;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 3: getstatic org.eclipse.jetty.util.ssl.X509.LOG:Lorg/slf4j/Logger;
ldc "IGNORED"
aload 2
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Throwable;)V
4: aconst_null
areturn
end local 2 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 address Ljava/lang/String;
3 5 2 x Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
address
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:
aload 0
aload 1
invokevirtual org.eclipse.jetty.util.ssl.X509.toInetAddress:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 3
start local 3 9: aload 3
ifnull 11
10: aload 0
getfield org.eclipse.jetty.util.ssl.X509._addresses:Ljava/util/Set;
aload 3
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
11: StackMap locals: java.net.InetAddress
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/eclipse/jetty/util/ssl/X509;
0 12 1 host Ljava/lang/String;
4 12 2 dot I
6 8 3 domain Ljava/lang/String;
9 12 3 address Ljava/net/InetAddress;
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"