public class org.glassfish.grizzly.ssl.SSLContextConfigurator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.ssl.SSLContextConfigurator
super_class: java.lang.Object
{
public static final java.lang.String TRUST_STORE_PROVIDER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.trustStoreProvider"
public static final java.lang.String KEY_STORE_PROVIDER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.keyStoreProvider"
public static final java.lang.String TRUST_STORE_FILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.trustStore"
public static final java.lang.String KEY_STORE_FILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.keyStore"
public static final java.lang.String TRUST_STORE_PASSWORD;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.trustStorePassword"
public static final java.lang.String KEY_STORE_PASSWORD;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.keyStorePassword"
public static final java.lang.String TRUST_STORE_TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.trustStoreType"
public static final java.lang.String KEY_STORE_TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.net.ssl.keyStoreType"
public static final java.lang.String KEY_FACTORY_MANAGER_ALGORITHM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ssl.KeyManagerFactory.algorithm"
public static final java.lang.String TRUST_FACTORY_MANAGER_ALGORITHM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ssl.TrustManagerFactory.algorithm"
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.glassfish.grizzly.ssl.SSLContextConfigurator DEFAULT_CONFIG;
descriptor: Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private java.lang.String trustStoreProvider;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String keyStoreProvider;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String trustStoreType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String keyStoreType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private char[] trustStorePass;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private char[] keyStorePass;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private char[] keyPass;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private java.lang.String trustStoreFile;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String keyStoreFile;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private byte[] trustStoreBytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] keyStoreBytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.lang.String trustManagerFactoryAlgorithm;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String keyManagerFactoryAlgorithm;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String securityProtocol;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
1: new org.glassfish.grizzly.ssl.SSLContextConfigurator
dup
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator.<init>:()V
putstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.DEFAULT_CONFIG:Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
public void <init>(boolean);
descriptor: (Z)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
ldc "TLS"
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
2: iload 1
ifeq 4
3: aload 0
invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
invokevirtual org.glassfish.grizzly.ssl.SSLContextConfigurator.retrieve:(Ljava/util/Properties;)V
4: StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 5 1 readSystemProperties Z
MethodParameters:
Name Flags
readSystemProperties
public void setTrustStoreProvider(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 trustStoreProvider Ljava/lang/String;
MethodParameters:
Name Flags
trustStoreProvider
public void setKeyStoreProvider(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyStoreProvider Ljava/lang/String;
MethodParameters:
Name Flags
keyStoreProvider
public void setTrustStoreType(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 trustStoreType Ljava/lang/String;
MethodParameters:
Name Flags
trustStoreType
public void setKeyStoreType(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyStoreType Ljava/lang/String;
MethodParameters:
Name Flags
keyStoreType
public void setTrustStorePass(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 trustStorePass Ljava/lang/String;
MethodParameters:
Name Flags
trustStorePass
public void setKeyStorePass(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyStorePass Ljava/lang/String;
MethodParameters:
Name Flags
keyStorePass
public void setKeyStorePass(char[]);
descriptor: ([C)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyStorePass [C
MethodParameters:
Name Flags
keyStorePass
public void setKeyPass(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyPass Ljava/lang/String;
MethodParameters:
Name Flags
keyPass
public void setKeyPass(char[]);
descriptor: ([C)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyPass [C
MethodParameters:
Name Flags
keyPass
public void setTrustStoreFile(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
1: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 3 1 trustStoreFile Ljava/lang/String;
MethodParameters:
Name Flags
trustStoreFile
public void setTrustStoreBytes(byte[]);
descriptor: ([B)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.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
1: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 3 1 trustStoreBytes [B
MethodParameters:
Name Flags
trustStoreBytes
public void setKeyStoreFile(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
1: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 3 1 keyStoreFile Ljava/lang/String;
MethodParameters:
Name Flags
keyStoreFile
public void setKeyStoreBytes(byte[]);
descriptor: ([B)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
1: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 3 1 keyStoreBytes [B
MethodParameters:
Name Flags
keyStoreBytes
public void setTrustManagerFactoryAlgorithm(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.trustManagerFactoryAlgorithm:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 trustManagerFactoryAlgorithm Ljava/lang/String;
MethodParameters:
Name Flags
trustManagerFactoryAlgorithm
public void setKeyManagerFactoryAlgorithm(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.keyManagerFactoryAlgorithm:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 keyManagerFactoryAlgorithm Ljava/lang/String;
MethodParameters:
Name Flags
keyManagerFactoryAlgorithm
public void setSecurityProtocol(java.lang.String);
descriptor: (Ljava/lang/String;)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.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 2 1 securityProtocol Ljava/lang/String;
MethodParameters:
Name Flags
securityProtocol
public boolean validateConfiguration();
descriptor: ()Z
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.SSLContextConfigurator.validateConfiguration:(Z)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public boolean validateConfiguration(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
ifnonnull 2
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
ifnull 60
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
ifnull 8
3: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
ifnull 4
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
goto 5
4: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
5: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
6: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
start local 3 7: goto 12
end local 3 8: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
ifnull 9
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
goto 10
9: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
10: StackMap locals:
StackMap stack: java.lang.String
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
11: astore 3
start local 3 12: StackMap locals: java.security.KeyStore
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
aload 3
invokestatic org.glassfish.grizzly.ssl.SSLContextConfigurator.loadBytes:([BLjava/lang/String;[CLjava/security/KeyStore;)V
13: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyManagerFactoryAlgorithm:Ljava/lang/String;
astore 4
start local 4 14: aload 4
ifnonnull 18
15: ldc "ssl.KeyManagerFactory.algorithm"
16: invokestatic javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
17: invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
18: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokestatic javax.net.ssl.KeyManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
19: astore 5
start local 5 20: aload 5
aload 3
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
ifnull 21
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
goto 22
21: StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int int java.security.KeyStore java.lang.String javax.net.ssl.KeyManagerFactory
StackMap stack: javax.net.ssl.KeyManagerFactory java.security.KeyStore
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
22: StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int int java.security.KeyStore java.lang.String javax.net.ssl.KeyManagerFactory
StackMap stack: javax.net.ssl.KeyManagerFactory java.security.KeyStore char[]
invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
end local 5 end local 4 end local 3 23: goto 63
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int int
StackMap stack: java.security.KeyStoreException
24: astore 3
start local 3 25: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing key store"
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
26: iconst_0
istore 2
end local 3 27: goto 63
28: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 3
start local 3 29: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Key store certificate exception."
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
30: iconst_0
istore 2
end local 3 31: goto 63
32: StackMap locals:
StackMap stack: java.security.UnrecoverableKeyException
astore 3
start local 3 33: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Key store unrecoverable exception."
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
34: iconst_0
istore 2
end local 3 35: goto 63
36: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 37: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Can't find key store file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
38: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
39: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
40: iconst_0
istore 2
end local 3 41: goto 63
42: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 43: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error loading key store from file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
44: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
45: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
46: iconst_0
istore 2
end local 3 47: goto 63
48: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 49: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
50: ldc "Error initializing key manager factory (no such algorithm)"
aload 3
51: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
52: iconst_0
istore 2
end local 3 53: goto 63
54: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 3
start local 3 55: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
56: ldc "Error initializing key store (no such provider)"
aload 3
57: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
58: iconst_0
istore 2
end local 3 59: goto 63
60: StackMap locals:
StackMap stack:
iload 1
ifeq 61
iconst_0
goto 62
StackMap locals:
StackMap stack:
61: iconst_1
StackMap locals:
StackMap stack: int
62: istore 2
63: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
ifnonnull 64
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
ifnull 116
64: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
ifnull 70
65: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 66
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 67
66: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
67: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
68: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
start local 3 69: goto 74
end local 3 70: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 71
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 72
71: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
72: StackMap locals:
StackMap stack: java.lang.String
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
73: astore 3
start local 3 74: StackMap locals: java.security.KeyStore
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
aload 3
invokestatic org.glassfish.grizzly.ssl.SSLContextConfigurator.loadBytes:([BLjava/lang/String;[CLjava/security/KeyStore;)V
75: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustManagerFactoryAlgorithm:Ljava/lang/String;
astore 4
start local 4 76: aload 4
ifnonnull 80
77: ldc "ssl.TrustManagerFactory.algorithm"
78: invokestatic javax.net.ssl.TrustManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
79: invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
80: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokestatic javax.net.ssl.TrustManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
81: astore 5
start local 5 82: aload 5
aload 3
invokevirtual javax.net.ssl.TrustManagerFactory.init:(Ljava/security/KeyStore;)V
end local 5 end local 4 end local 3 83: goto 116
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int int
StackMap stack: java.security.KeyStoreException
84: astore 3
start local 3 85: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing trust store"
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
86: iconst_0
istore 2
end local 3 87: goto 116
88: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 3
start local 3 89: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Trust store certificate exception."
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
90: iconst_0
istore 2
end local 3 91: goto 116
92: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 93: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Can't find trust store file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
94: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
95: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
96: iconst_0
istore 2
end local 3 97: goto 116
98: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 99: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error loading trust store from file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
100: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
101: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
102: iconst_0
istore 2
end local 3 103: goto 116
104: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 105: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
106: ldc "Error initializing trust manager factory (no such algorithm)"
107: aload 3
108: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
109: iconst_0
istore 2
end local 3 110: goto 116
111: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 3
start local 3 112: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
113: ldc "Error initializing trust store (no such provider)"
aload 3
114: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
115: iconst_0
istore 2
end local 3 116: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 117 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 117 1 needsKeyStore Z
1 117 2 valid Z
7 8 3 keyStore Ljava/security/KeyStore;
12 23 3 keyStore Ljava/security/KeyStore;
14 23 4 kmfAlgorithm Ljava/lang/String;
20 23 5 keyManagerFactory Ljavax/net/ssl/KeyManagerFactory;
25 27 3 e Ljava/security/KeyStoreException;
29 31 3 e Ljava/security/cert/CertificateException;
33 35 3 e Ljava/security/UnrecoverableKeyException;
37 41 3 e Ljava/io/FileNotFoundException;
43 47 3 e Ljava/io/IOException;
49 53 3 e Ljava/security/NoSuchAlgorithmException;
55 59 3 e Ljava/security/NoSuchProviderException;
69 70 3 trustStore Ljava/security/KeyStore;
74 83 3 trustStore Ljava/security/KeyStore;
76 83 4 tmfAlgorithm Ljava/lang/String;
82 83 5 trustManagerFactory Ljavax/net/ssl/TrustManagerFactory;
85 87 3 e Ljava/security/KeyStoreException;
89 91 3 e Ljava/security/cert/CertificateException;
93 97 3 e Ljava/io/FileNotFoundException;
99 103 3 e Ljava/io/IOException;
105 110 3 e Ljava/security/NoSuchAlgorithmException;
112 116 3 e Ljava/security/NoSuchProviderException;
Exception table:
from to target type
2 23 24 Class java.security.KeyStoreException
2 23 28 Class java.security.cert.CertificateException
2 23 32 Class java.security.UnrecoverableKeyException
2 23 36 Class java.io.FileNotFoundException
2 23 42 Class java.io.IOException
2 23 48 Class java.security.NoSuchAlgorithmException
2 23 54 Class java.security.NoSuchProviderException
64 83 84 Class java.security.KeyStoreException
64 83 88 Class java.security.cert.CertificateException
64 83 92 Class java.io.FileNotFoundException
64 83 98 Class java.io.IOException
64 83 104 Class java.security.NoSuchAlgorithmException
64 83 111 Class java.security.NoSuchProviderException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
needsKeyStore
public javax.net.ssl.SSLContext createSSLContext();
descriptor: ()Ljavax/net/ssl/SSLContext;
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.SSLContextConfigurator.createSSLContext:(Z)Ljavax/net/ssl/SSLContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public javax.net.ssl.SSLContext createSSLContext(boolean);
descriptor: (Z)Ljavax/net/ssl/SSLContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
ifnonnull 4
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
ifnull 52
4: StackMap locals: javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
ifnull 10
5: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
ifnull 6
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
goto 7
6: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
7: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
8: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 5
start local 5 9: goto 14
end local 5 10: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
ifnull 11
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
goto 12
11: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
12: StackMap locals:
StackMap stack: java.lang.String
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
13: astore 5
start local 5 14: StackMap locals: java.security.KeyStore
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
aload 5
invokestatic org.glassfish.grizzly.ssl.SSLContextConfigurator.loadBytes:([BLjava/lang/String;[CLjava/security/KeyStore;)V
15: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyManagerFactoryAlgorithm:Ljava/lang/String;
astore 6
start local 6 16: aload 6
ifnonnull 20
17: ldc "ssl.KeyManagerFactory.algorithm"
18: invokestatic javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
19: invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
20: StackMap locals: java.lang.String
StackMap stack:
aload 6
invokestatic javax.net.ssl.KeyManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
21: astore 4
22: aload 4
aload 5
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
ifnull 23
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
goto 24
23: StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory java.security.KeyStore java.lang.String
StackMap stack: javax.net.ssl.KeyManagerFactory java.security.KeyStore
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
24: StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory java.security.KeyStore java.lang.String
StackMap stack: javax.net.ssl.KeyManagerFactory java.security.KeyStore char[]
invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
end local 6 end local 5 25: goto 52
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory
StackMap stack: java.security.KeyStoreException
26: astore 5
start local 5 27: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing key store"
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
28: iload 1
ifeq 52
29: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 30: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 5
start local 5 31: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Key store certificate exception."
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
32: iload 1
ifeq 52
33: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 34: StackMap locals:
StackMap stack: java.security.UnrecoverableKeyException
astore 5
start local 5 35: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Key store unrecoverable exception."
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
36: iload 1
ifeq 52
37: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 38: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 5
start local 5 39: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Can't find key store file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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
40: iload 1
ifeq 52
41: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 42: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 43: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error loading key store from file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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
44: iload 1
ifeq 52
45: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 46: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 5
start local 5 47: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing key manager factory (no such algorithm)"
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
48: iload 1
ifeq 52
49: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 50: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 5
start local 5 51: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing key store (no such provider)"
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 5 52: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
ifnonnull 53
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
ifnull 97
53: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
ifnull 59
54: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 55
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 56
55: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
56: StackMap locals:
StackMap stack: java.lang.String
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
57: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 5
start local 5 58: goto 63
end local 5 59: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 60
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 61
60: StackMap locals:
StackMap stack:
invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
61: StackMap locals:
StackMap stack: java.lang.String
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
62: astore 5
start local 5 63: StackMap locals: java.security.KeyStore
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
aload 5
invokestatic org.glassfish.grizzly.ssl.SSLContextConfigurator.loadBytes:([BLjava/lang/String;[CLjava/security/KeyStore;)V
64: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustManagerFactoryAlgorithm:Ljava/lang/String;
astore 6
start local 6 65: aload 6
ifnonnull 69
66: ldc "ssl.TrustManagerFactory.algorithm"
67: invokestatic javax.net.ssl.TrustManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
68: invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
69: StackMap locals: java.lang.String
StackMap stack:
aload 6
invokestatic javax.net.ssl.TrustManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
70: astore 3
71: aload 3
aload 5
invokevirtual javax.net.ssl.TrustManagerFactory.init:(Ljava/security/KeyStore;)V
end local 6 end local 5 72: goto 97
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory
StackMap stack: java.security.KeyStoreException
73: astore 5
start local 5 74: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing trust store"
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
75: iload 1
ifeq 97
76: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 77: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 5
start local 5 78: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Trust store certificate exception."
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
79: iload 1
ifeq 97
80: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 81: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 5
start local 5 82: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Can't find trust store file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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
83: iload 1
ifeq 97
84: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 85: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 86: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "Error loading trust store from file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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
87: iload 1
ifeq 97
88: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 89: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 5
start local 5 90: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing trust manager factory (no such algorithm)"
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
91: iload 1
ifeq 97
92: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 93: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 5
start local 5 94: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing trust store (no such provider)"
aload 5
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
95: iload 1
ifeq 97
96: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 5
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 97: StackMap locals:
StackMap stack:
ldc "TLS"
astore 5
start local 5 98: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
ifnull 100
99: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
astore 5
100: StackMap locals: java.lang.String
StackMap stack:
aload 5
invokestatic javax.net.ssl.SSLContext.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
astore 2
101: aload 2
aload 4
ifnull 103
aload 4
102: invokevirtual javax.net.ssl.KeyManagerFactory.getKeyManagers:()[Ljavax/net/ssl/KeyManager;
goto 104
StackMap locals:
StackMap stack: javax.net.ssl.SSLContext
103: aconst_null
104: StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory java.lang.String
StackMap stack: javax.net.ssl.SSLContext javax.net.ssl.KeyManager[]
aload 3
ifnull 106
aload 3
105: invokevirtual javax.net.ssl.TrustManagerFactory.getTrustManagers:()[Ljavax/net/ssl/TrustManager;
goto 107
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory java.lang.String
StackMap stack: javax.net.ssl.SSLContext javax.net.ssl.KeyManager[]
106: aconst_null
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext javax.net.ssl.TrustManagerFactory javax.net.ssl.KeyManagerFactory java.lang.String
StackMap stack: javax.net.ssl.SSLContext javax.net.ssl.KeyManager[] javax.net.ssl.TrustManager[]
107: aconst_null
108: invokevirtual javax.net.ssl.SSLContext.init:([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V
end local 5 end local 4 end local 3 109: goto 118
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext
StackMap stack: java.security.KeyManagementException
110: astore 3
start local 3 111: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Key management error."
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
112: iload 1
ifeq 118
113: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 3
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 114: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 115: getstatic org.glassfish.grizzly.ssl.SSLContextConfigurator.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Error initializing algorithm."
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
116: iload 1
ifeq 118
117: new org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
dup
aload 3
invokespecial org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 118: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 119 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 119 1 throwException Z
1 119 2 sslContext Ljavax/net/ssl/SSLContext;
2 109 3 trustManagerFactory Ljavax/net/ssl/TrustManagerFactory;
3 109 4 keyManagerFactory Ljavax/net/ssl/KeyManagerFactory;
9 10 5 keyStore Ljava/security/KeyStore;
14 25 5 keyStore Ljava/security/KeyStore;
16 25 6 kmfAlgorithm Ljava/lang/String;
27 30 5 e Ljava/security/KeyStoreException;
31 34 5 e Ljava/security/cert/CertificateException;
35 38 5 e Ljava/security/UnrecoverableKeyException;
39 42 5 e Ljava/io/FileNotFoundException;
43 46 5 e Ljava/io/IOException;
47 50 5 e Ljava/security/NoSuchAlgorithmException;
51 52 5 e Ljava/security/NoSuchProviderException;
58 59 5 trustStore Ljava/security/KeyStore;
63 72 5 trustStore Ljava/security/KeyStore;
65 72 6 tmfAlgorithm Ljava/lang/String;
74 77 5 e Ljava/security/KeyStoreException;
78 81 5 e Ljava/security/cert/CertificateException;
82 85 5 e Ljava/io/FileNotFoundException;
86 89 5 e Ljava/io/IOException;
90 93 5 e Ljava/security/NoSuchAlgorithmException;
94 97 5 e Ljava/security/NoSuchProviderException;
98 109 5 secProtocol Ljava/lang/String;
111 114 3 e Ljava/security/KeyManagementException;
115 118 3 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
4 25 26 Class java.security.KeyStoreException
4 25 30 Class java.security.cert.CertificateException
4 25 34 Class java.security.UnrecoverableKeyException
4 25 38 Class java.io.FileNotFoundException
4 25 42 Class java.io.IOException
4 25 46 Class java.security.NoSuchAlgorithmException
4 25 50 Class java.security.NoSuchProviderException
53 72 73 Class java.security.KeyStoreException
53 72 77 Class java.security.cert.CertificateException
53 72 81 Class java.io.FileNotFoundException
53 72 85 Class java.io.IOException
53 72 89 Class java.security.NoSuchAlgorithmException
53 72 93 Class java.security.NoSuchProviderException
1 109 110 Class java.security.KeyManagementException
1 109 114 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
throwException final
public void retrieve(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "javax.net.ssl.trustStoreProvider"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
1: aload 0
aload 1
ldc "javax.net.ssl.keyStoreProvider"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
2: aload 0
aload 1
ldc "javax.net.ssl.trustStoreType"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
3: aload 0
aload 1
ldc "javax.net.ssl.keyStoreType"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
4: aload 1
ldc "javax.net.ssl.trustStorePassword"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ifnull 9
5: aload 0
aload 1
ldc "javax.net.ssl.trustStorePassword"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
6: invokevirtual java.lang.String.toCharArray:()[C
7: putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
10: StackMap locals:
StackMap stack:
aload 1
ldc "javax.net.ssl.keyStorePassword"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ifnull 13
11: aload 0
aload 1
ldc "javax.net.ssl.keyStorePassword"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.toCharArray:()[C
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
12: goto 14
13: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
14: StackMap locals:
StackMap stack:
aload 0
aload 1
ldc "javax.net.ssl.trustStore"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
15: aload 0
aload 1
ldc "javax.net.ssl.keyStore"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreFile:Ljava/lang/String;
16: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
17: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
18: aload 0
ldc "TLS"
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
19: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 20 1 props Ljava/util/Properties;
MethodParameters:
Name Flags
props
private static void loadBytes(byte[], java.lang.String, char[], java.security.KeyStore);
descriptor: ([BLjava/lang/String;[CLjava/security/KeyStore;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 0
ifnull 4
2: new java.io.ByteArrayInputStream
dup
aload 0
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 4
3: goto 6
StackMap locals: java.io.InputStream
StackMap stack:
4: ldc "NONE"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
5: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 4
6: StackMap locals:
StackMap stack:
aload 3
aload 4
aload 2
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
7: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 5
9: aload 4
ifnull 13
10: aload 4
invokevirtual java.io.InputStream.close:()V
11: goto 13
StackMap locals: byte[] java.lang.String char[] java.security.KeyStore java.io.InputStream java.lang.Throwable
StackMap stack: java.io.IOException
12: pop
13: StackMap locals:
StackMap stack:
aload 5
athrow
14: StackMap locals:
StackMap stack:
aload 4
ifnull 18
15: aload 4
invokevirtual java.io.InputStream.close:()V
16: goto 18
StackMap locals:
StackMap stack: java.io.IOException
17: pop
18: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 bytes [B
0 19 1 storeFile Ljava/lang/String;
0 19 2 password [C
0 19 3 store Ljava/security/KeyStore;
1 19 4 inputStream Ljava/io/InputStream;
Exception table:
from to target type
1 8 8 any
9 11 12 Class java.io.IOException
14 16 17 Class java.io.IOException
Exceptions:
throws java.io.IOException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
bytes final
storeFile final
password final
store final
}
SourceFile: "SSLContextConfigurator.java"
NestMembers:
org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException
InnerClasses:
public final GenericStoreException = org.glassfish.grizzly.ssl.SSLContextConfigurator$GenericStoreException of org.glassfish.grizzly.ssl.SSLContextConfigurator