public class org.glassfish.grizzly.ssl.SSLSupportImpl implements org.glassfish.grizzly.ssl.SSLSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.ssl.SSLSupportImpl
super_class: java.lang.Object
{
private static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.ssl.SSLSupport$CipherData[] ciphers;
descriptor: [Lorg/glassfish/grizzly/ssl/SSLSupport$CipherData;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String KEY_SIZE_KEY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "SSL_KEY_SIZE"
private final javax.net.ssl.SSLEngine engine;
descriptor: Ljavax/net/ssl/SSLEngine;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile javax.net.ssl.SSLSession session;
descriptor: Ljavax/net/ssl/SSLSession;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.ssl.SSLSupportImpl.logger:Ljava/util/logging/Logger;
1: bipush 10
anewarray org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
iconst_0
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_NULL_"
iconst_0
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
iconst_1
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_IDEA_CBC_"
sipush 128
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
iconst_2
2: new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_RC2_CBC_40_"
bipush 40
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
iconst_3
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_RC4_40_"
bipush 40
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
iconst_4
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_RC4_128_"
sipush 128
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
iconst_5
3: new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_DES40_CBC_"
bipush 40
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
bipush 6
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_DES_CBC_"
bipush 56
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
bipush 7
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_3DES_EDE_CBC_"
sipush 168
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
bipush 8
4: new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_AES_128_"
sipush 128
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
dup
bipush 9
new org.glassfish.grizzly.ssl.SSLSupport$CipherData
dup
ldc "_WITH_AES_256_"
sipush 256
invokespecial org.glassfish.grizzly.ssl.SSLSupport$CipherData.<init>:(Ljava/lang/String;I)V
aastore
5: putstatic org.glassfish.grizzly.ssl.SSLSupportImpl.ciphers:[Lorg/glassfish/grizzly/ssl/SSLSupport$CipherData;
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.glassfish.grizzly.Connection);
descriptor: (Lorg/glassfish/grizzly/Connection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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
invokestatic org.glassfish.grizzly.ssl.SSLUtils.getSSLEngine:(Lorg/glassfish/grizzly/Connection;)Ljavax/net/ssl/SSLEngine;
putfield org.glassfish.grizzly.ssl.SSLSupportImpl.engine:Ljavax/net/ssl/SSLEngine;
2: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.engine:Ljavax/net/ssl/SSLEngine;
ifnonnull 4
3: new java.lang.IllegalStateException
dup
ldc "SSLEngine is null"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.glassfish.grizzly.ssl.SSLSupportImpl org.glassfish.grizzly.Connection
StackMap stack:
aload 0
aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.engine:Ljavax/net/ssl/SSLEngine;
invokevirtual javax.net.ssl.SSLEngine.getSession:()Ljavax/net/ssl/SSLSession;
putfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
0 6 1 connection Lorg/glassfish/grizzly/Connection;
MethodParameters:
Name Flags
connection
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.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.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/glassfish/grizzly/ssl/SSLSupportImpl;
Exceptions:
throws java.io.IOException
public java.lang.Object[] getPeerCertificateChain();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.glassfish.grizzly.ssl.SSLSupportImpl.getPeerCertificateChain:(Z)[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
Exceptions:
throws java.io.IOException
protected java.security.cert.X509Certificate[] getX509Certificates(javax.net.ssl.SSLSession);
descriptor: (Ljavax/net/ssl/SSLSession;)[Ljava/security/cert/X509Certificate;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokeinterface javax.net.ssl.SSLSession.getPeerCertificateChain:()[Ljavax/security/cert/X509Certificate;
astore 2
2: goto 4
StackMap locals: org.glassfish.grizzly.ssl.SSLSupportImpl javax.net.ssl.SSLSession javax.security.cert.X509Certificate[]
StackMap stack: java.lang.Throwable
3: pop
4: StackMap locals:
StackMap stack:
aload 2
ifnonnull 6
5: iconst_0
anewarray javax.security.cert.X509Certificate
astore 2
6: StackMap locals:
StackMap stack:
aload 2
arraylength
anewarray java.security.cert.X509Certificate
astore 3
start local 3 7: iconst_0
istore 4
start local 4 8: goto 20
9: StackMap locals: java.security.cert.X509Certificate[] int
StackMap stack:
aload 2
iload 4
aaload
invokevirtual javax.security.cert.X509Certificate.getEncoded:()[B
astore 5
start local 5 10: ldc "X.509"
invokestatic java.security.cert.CertificateFactory.getInstance:(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;
astore 6
start local 6 11: new java.io.ByteArrayInputStream
dup
aload 5
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 7
start local 7 12: aload 3
iload 4
aload 6
aload 7
invokevirtual java.security.cert.CertificateFactory.generateCertificate:(Ljava/io/InputStream;)Ljava/security/cert/Certificate;
checkcast java.security.cert.X509Certificate
aastore
13: getstatic org.glassfish.grizzly.ssl.SSLSupportImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 19
14: getstatic org.glassfish.grizzly.ssl.SSLSupportImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Cert #"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
iload 4
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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 15: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
16: astore 5
start local 5 17: getstatic org.glassfish.grizzly.ssl.SSLSupportImpl.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.INFO:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error translating "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 4
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
18: aconst_null
areturn
end local 5 19: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
20: iload 4
aload 3
arraylength
if_icmplt 9
end local 4 21: aload 3
arraylength
iconst_1
if_icmpge 23
22: aconst_null
areturn
23: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
0 24 1 session Ljavax/net/ssl/SSLSession;
1 24 2 jsseCerts [Ljavax/security/cert/X509Certificate;
7 24 3 x509Certs [Ljava/security/cert/X509Certificate;
8 21 4 i I
10 15 5 buffer [B
11 15 6 cf Ljava/security/cert/CertificateFactory;
12 15 7 stream Ljava/io/ByteArrayInputStream;
17 19 5 ex Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
9 15 16 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
session
public java.lang.Object[] getPeerCertificateChain(boolean);
descriptor: (Z)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getPeerCertificateChain:()[Ljavax/security/cert/X509Certificate;
astore 2
4: goto 6
StackMap locals: org.glassfish.grizzly.ssl.SSLSupportImpl int javax.security.cert.X509Certificate[]
StackMap stack: java.lang.Exception
5: pop
6: StackMap locals:
StackMap stack:
aload 2
ifnonnull 8
7: iconst_0
anewarray javax.security.cert.X509Certificate
astore 2
8: StackMap locals:
StackMap stack:
aload 2
arraylength
ifgt 11
iload 1
ifeq 11
9: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.invalidate:()V
10: aload 0
aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.engine:Ljavax/net/ssl/SSLEngine;
invokevirtual javax.net.ssl.SSLEngine.getSession:()Ljavax/net/ssl/SSLSession;
putfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
11: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
invokevirtual org.glassfish.grizzly.ssl.SSLSupportImpl.getX509Certificates:(Ljavax/net/ssl/SSLSession;)[Ljava/security/cert/X509Certificate;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
0 12 1 force Z
3 12 2 jsseCerts [Ljavax/security/cert/X509Certificate;
Exception table:
from to target type
3 4 5 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
force
public java.lang.Integer getKeySize();
descriptor: ()Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.ssl.SSLSupportImpl.ciphers:[Lorg/glassfish/grizzly/ssl/SSLSupport$CipherData;
astore 1
start local 1 1: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: org.glassfish.grizzly.ssl.SSLSupport$CipherData[]
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
ldc "SSL_KEY_SIZE"
invokeinterface javax.net.ssl.SSLSession.getValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 4: aload 2
ifnonnull 16
5: iconst_0
istore 3
start local 3 6: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
invokeinterface javax.net.ssl.SSLSession.getCipherSuite:()Ljava/lang/String;
astore 4
start local 4 7: iconst_0
istore 5
start local 5 8: goto 13
9: StackMap locals: org.glassfish.grizzly.ssl.SSLSupportImpl org.glassfish.grizzly.ssl.SSLSupport$CipherData[] java.lang.Integer int java.lang.String int
StackMap stack:
aload 4
aload 1
iload 5
aaload
getfield org.glassfish.grizzly.ssl.SSLSupport$CipherData.phrase:Ljava/lang/String;
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 12
10: aload 1
iload 5
aaload
getfield org.glassfish.grizzly.ssl.SSLSupport$CipherData.keySize:I
istore 3
11: goto 14
12: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
aload 1
arraylength
if_icmplt 9
end local 5 14: StackMap locals:
StackMap stack:
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
15: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
ldc "SSL_KEY_SIZE"
aload 2
invokeinterface javax.net.ssl.SSLSession.putValue:(Ljava/lang/String;Ljava/lang/Object;)V
end local 4 end local 3 16: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
1 17 1 c_aux [Lorg/glassfish/grizzly/ssl/SSLSupport$CipherData;
4 17 2 keySize Ljava/lang/Integer;
6 16 3 size I
7 16 4 cipherSuite Ljava/lang/String;
8 14 5 i I
Exceptions:
throws java.io.IOException
public java.lang.String getSessionId();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.session:Ljavax/net/ssl/SSLSession;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLSupportImpl.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
ldc ""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2
start local 2 6: iconst_0
istore 3
start local 3 7: goto 15
8: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
iload 3
baload
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 4
start local 4 9: aload 4
invokevirtual java.lang.String.length:()I
iconst_2
if_icmpge 11
10: aload 2
bipush 48
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokevirtual java.lang.String.length:()I
iconst_2
if_icmple 13
12: aload 4
aload 4
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
13: StackMap locals:
StackMap stack:
aload 2
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 14: iinc 3 1
StackMap locals:
StackMap stack:
15: iload 3
aload 1
arraylength
if_icmplt 8
end local 3 16: 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 17 0 this Lorg/glassfish/grizzly/ssl/SSLSupportImpl;
3 17 1 ssl_session [B
6 17 2 buf Ljava/lang/StringBuilder;
7 16 3 x I
9 14 4 digit Ljava/lang/String;
Exceptions:
throws java.io.IOException
}
SourceFile: "SSLSupportImpl.java"
InnerClasses:
public final CipherData = org.glassfish.grizzly.ssl.SSLSupport$CipherData of org.glassfish.grizzly.ssl.SSLSupport