public class org.apache.tomcat.util.net.jsse.JSSESupport implements org.apache.tomcat.util.net.SSLSupport, org.apache.tomcat.util.net.SSLSessionManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.net.jsse.JSSESupport
super_class: java.lang.Object
{
private static final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map<java.lang.String, java.lang.Integer> keySizeCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private javax.net.ssl.SSLSession session;
descriptor: Ljavax/net/ssl/SSLSession;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=0
0: ldc Lorg/apache/tomcat/util/net/jsse/JSSESupport;
invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
putstatic org.apache.tomcat.util.net.jsse.JSSESupport.log:Lorg/apache/juli/logging/Log;
1: ldc Lorg/apache/tomcat/util/net/jsse/JSSESupport;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.net.jsse.JSSESupport.sm:Lorg/apache/tomcat/util/res/StringManager;
2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.apache.tomcat.util.net.jsse.JSSESupport.keySizeCache:Ljava/util/Map;
3: invokestatic org.apache.tomcat.util.net.openssl.ciphers.Cipher.values:()[Lorg/apache/tomcat/util/net/openssl/ciphers/Cipher;
dup
astore 3
arraylength
istore 2
iconst_0
istore 1
goto 10
StackMap locals: top int int org.apache.tomcat.util.net.openssl.ciphers.Cipher[]
StackMap stack:
4: aload 3
iload 1
aaload
astore 0
start local 0 5: aload 0
invokevirtual org.apache.tomcat.util.net.openssl.ciphers.Cipher.getJsseNames:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: org.apache.tomcat.util.net.openssl.ciphers.Cipher int int org.apache.tomcat.util.net.openssl.ciphers.Cipher[] top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 7: getstatic org.apache.tomcat.util.net.jsse.JSSESupport.keySizeCache:Ljava/util/Map;
aload 4
aload 0
invokevirtual org.apache.tomcat.util.net.openssl.ciphers.Cipher.getStrength_bits:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 0 9: iinc 1 1
StackMap locals: top int int org.apache.tomcat.util.net.openssl.ciphers.Cipher[]
StackMap stack:
10: iload 1
iload 2
if_icmplt 4
11: return
LocalVariableTable:
Start End Slot Name Signature
5 9 0 cipher Lorg/apache/tomcat/util/net/openssl/ciphers/Cipher;
7 8 4 jsseName Ljava/lang/String;
static void init();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=0, locals=0, args_size=0
0: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(javax.net.ssl.SSLSession);
descriptor: (Ljavax/net/ssl/SSLSession;)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.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
0 3 1 session Ljavax/net/ssl/SSLSession;
MethodParameters:
Name Flags
session
public java.lang.String getCipherSuite();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getCipherSuite:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
Exceptions:
throws java.io.IOException
public java.security.cert.X509Certificate[] getLocalCertificateChain();
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.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getLocalCertificates:()[Ljava/security/cert/Certificate;
invokestatic org.apache.tomcat.util.net.jsse.JSSESupport.convertCertificates:([Ljava/security/cert/Certificate;)[Ljava/security/cert/X509Certificate;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
public java.security.cert.X509Certificate[] getPeerCertificateChain();
descriptor: ()[Ljava/security/cert/X509Certificate;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getPeerCertificates:()[Ljava/security/cert/Certificate;
astore 1
4: goto 8
StackMap locals: org.apache.tomcat.util.net.jsse.JSSESupport java.security.cert.Certificate[]
StackMap stack: java.lang.Throwable
5: astore 2
start local 2 6: getstatic org.apache.tomcat.util.net.jsse.JSSESupport.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.net.jsse.JSSESupport.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "jsseSupport.clientCertError"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
7: aconst_null
areturn
end local 2 8: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.tomcat.util.net.jsse.JSSESupport.convertCertificates:([Ljava/security/cert/Certificate;)[Ljava/security/cert/X509Certificate;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
3 9 1 certs [Ljava/security/cert/Certificate;
6 8 2 t Ljava/lang/Throwable;
Exception table:
from to target type
3 4 5 Class java.lang.Throwable
Exceptions:
throws java.io.IOException
private static java.security.cert.X509Certificate[] convertCertificates(java.security.cert.Certificate[]);
descriptor: ([Ljava/security/cert/Certificate;)[Ljava/security/cert/X509Certificate;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=6, args_size=1
start local 0 0: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
arraylength
anewarray java.security.cert.X509Certificate
2: astore 1
start local 1 3: iconst_0
istore 2
start local 2 4: goto 27
5: StackMap locals: java.security.cert.X509Certificate[] int
StackMap stack:
aload 0
iload 2
aaload
instanceof java.security.cert.X509Certificate
ifeq 8
6: aload 1
iload 2
aload 0
iload 2
aaload
checkcast java.security.cert.X509Certificate
aastore
7: goto 24
8: StackMap locals:
StackMap stack:
aload 0
iload 2
aaload
invokevirtual java.security.cert.Certificate.getEncoded:()[B
astore 3
start local 3 9: ldc "X.509"
invokestatic java.security.cert.CertificateFactory.getInstance:(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
10: astore 4
start local 4 11: new java.io.ByteArrayInputStream
dup
aload 3
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
12: astore 5
start local 5 13: aload 1
iload 2
14: aload 4
aload 5
invokevirtual java.security.cert.CertificateFactory.generateCertificate:(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
15: checkcast java.security.cert.X509Certificate
aastore
end local 5 end local 4 end local 3 16: goto 24
StackMap locals:
StackMap stack: java.lang.Exception
17: astore 3
start local 3 18: getstatic org.apache.tomcat.util.net.jsse.JSSESupport.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.net.jsse.JSSESupport.sm:Lorg/apache/tomcat/util/res/StringManager;
19: ldc "jsseSupport.certTranslationError"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
iload 2
aaload
aastore
20: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
21: aload 3
22: invokeinterface org.apache.juli.logging.Log.info:(Ljava/lang/Object;Ljava/lang/Throwable;)V
23: aconst_null
areturn
end local 3 24: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.net.jsse.JSSESupport.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 26
25: getstatic org.apache.tomcat.util.net.jsse.JSSESupport.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Cert #"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
iload 2
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
26: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
27: iload 2
aload 0
arraylength
if_icmplt 5
end local 2 28: aload 1
arraylength
iconst_1
if_icmpge 30
29: aconst_null
areturn
30: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 certs [Ljava/security/cert/Certificate;
3 31 1 x509Certs [Ljava/security/cert/X509Certificate;
4 28 2 i I
9 16 3 buffer [B
11 16 4 cf Ljava/security/cert/CertificateFactory;
13 16 5 stream Ljava/io/ByteArrayInputStream;
18 24 3 ex Ljava/lang/Exception;
Exception table:
from to target type
8 16 17 Class java.lang.Exception
MethodParameters:
Name Flags
certs
public java.lang.Integer getKeySize();
descriptor: ()Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.net.jsse.JSSESupport.keySizeCache:Ljava/util/Map;
aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getCipherSuite:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
Exceptions:
throws java.io.IOException
public java.lang.String getSessionId();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getId:()[B
astore 1
start local 1 3: aload 1
ifnonnull 5
4: aconst_null
areturn
5: StackMap locals: byte[]
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 6: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 13
StackMap locals: org.apache.tomcat.util.net.jsse.JSSESupport byte[] java.lang.StringBuilder top int int byte[]
StackMap stack:
7: aload 6
iload 4
baload
istore 3
start local 3 8: iload 3
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 7
start local 7 9: aload 7
invokevirtual java.lang.String.length:()I
iconst_2
if_icmpge 10
aload 2
bipush 48
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
10: StackMap locals: org.apache.tomcat.util.net.jsse.JSSESupport byte[] java.lang.StringBuilder int int int byte[] java.lang.String
StackMap stack:
aload 7
invokevirtual java.lang.String.length:()I
iconst_2
if_icmple 11
aload 7
aload 7
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 7
11: StackMap locals:
StackMap stack:
aload 2
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 end local 3 12: iinc 4 1
StackMap locals: org.apache.tomcat.util.net.jsse.JSSESupport byte[] java.lang.StringBuilder top int int byte[]
StackMap stack:
13: iload 4
iload 5
if_icmplt 7
14: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
3 15 1 ssl_session [B
6 15 2 buf Ljava/lang/StringBuilder;
8 12 3 b B
9 12 7 digit Ljava/lang/String;
Exceptions:
throws java.io.IOException
public void setSession(javax.net.ssl.SSLSession);
descriptor: (Ljavax/net/ssl/SSLSession;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
0 2 1 session Ljavax/net/ssl/SSLSession;
MethodParameters:
Name Flags
session
public void invalidateSession();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.invalidate:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
public java.lang.String getProtocol();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.jsse.JSSESupport.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getProtocol:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/net/jsse/JSSESupport;
Exceptions:
throws java.io.IOException
}
SourceFile: "JSSESupport.java"