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 47
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreProvider:Ljava/lang/String;
ifnull 7
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
StackMap locals:
StackMap stack:
4: 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;
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
start local 3 6: goto 10
end local 3 7: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
ifnull 8
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
goto 9
StackMap locals:
StackMap stack:
8: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
9: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
start local 3 10: 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
11: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyManagerFactoryAlgorithm:Ljava/lang/String;
astore 4
start local 4 12: aload 4
ifnonnull 14
13: ldc "ssl.KeyManagerFactory.algorithm"
invokestatic javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
14: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokestatic javax.net.ssl.KeyManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
astore 5
start local 5 15: aload 5
aload 3
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
ifnull 16
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
goto 17
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
16: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
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[]
17: invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
end local 5 end local 4 end local 3 18: goto 50
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int int
StackMap stack: java.security.KeyStoreException
19: astore 3
start local 3 20: 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
21: iconst_0
istore 2
end local 3 22: goto 50
23: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 3
start local 3 24: 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
25: iconst_0
istore 2
end local 3 26: goto 50
27: StackMap locals:
StackMap stack: java.security.UnrecoverableKeyException
astore 3
start local 3 28: 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
29: iconst_0
istore 2
end local 3 30: goto 50
31: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 32: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
33: iconst_0
istore 2
end local 3 34: goto 50
35: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 36: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
37: iconst_0
istore 2
end local 3 38: goto 50
39: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 40: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
41: iconst_0
istore 2
end local 3 42: goto 50
43: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 3
start local 3 44: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
45: iconst_0
istore 2
end local 3 46: goto 50
47: StackMap locals:
StackMap stack:
iload 1
ifeq 48
iconst_0
goto 49
StackMap locals:
StackMap stack:
48: iconst_1
StackMap locals:
StackMap stack: int
49: istore 2
50: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
ifnonnull 51
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
ifnull 89
51: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
ifnull 56
52: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 53
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 54
StackMap locals:
StackMap stack:
53: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
54: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
start local 3 55: goto 59
end local 3 56: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 57
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 58
StackMap locals:
StackMap stack:
57: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
58: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 3
start local 3 59: 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
60: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustManagerFactoryAlgorithm:Ljava/lang/String;
astore 4
start local 4 61: aload 4
ifnonnull 63
62: ldc "ssl.TrustManagerFactory.algorithm"
invokestatic javax.net.ssl.TrustManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
63: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokestatic javax.net.ssl.TrustManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
astore 5
start local 5 64: aload 5
aload 3
invokevirtual javax.net.ssl.TrustManagerFactory.init:(Ljava/security/KeyStore;)V
end local 5 end local 4 end local 3 65: goto 89
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int int
StackMap stack: java.security.KeyStoreException
66: astore 3
start local 3 67: 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
68: iconst_0
istore 2
end local 3 69: goto 89
70: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 3
start local 3 71: 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
72: iconst_0
istore 2
end local 3 73: goto 89
74: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 75: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
76: iconst_0
istore 2
end local 3 77: goto 89
78: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 79: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
80: iconst_0
istore 2
end local 3 81: goto 89
82: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 83: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
84: iconst_0
istore 2
end local 3 85: goto 89
86: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 3
start local 3 87: 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 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
88: iconst_0
istore 2
end local 3 89: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 90 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 90 1 needsKeyStore Z
1 90 2 valid Z
6 7 3 keyStore Ljava/security/KeyStore;
10 18 3 keyStore Ljava/security/KeyStore;
12 18 4 kmfAlgorithm Ljava/lang/String;
15 18 5 keyManagerFactory Ljavax/net/ssl/KeyManagerFactory;
20 22 3 e Ljava/security/KeyStoreException;
24 26 3 e Ljava/security/cert/CertificateException;
28 30 3 e Ljava/security/UnrecoverableKeyException;
32 34 3 e Ljava/io/FileNotFoundException;
36 38 3 e Ljava/io/IOException;
40 42 3 e Ljava/security/NoSuchAlgorithmException;
44 46 3 e Ljava/security/NoSuchProviderException;
55 56 3 trustStore Ljava/security/KeyStore;
59 65 3 trustStore Ljava/security/KeyStore;
61 65 4 tmfAlgorithm Ljava/lang/String;
64 65 5 trustManagerFactory Ljavax/net/ssl/TrustManagerFactory;
67 69 3 e Ljava/security/KeyStoreException;
71 73 3 e Ljava/security/cert/CertificateException;
75 77 3 e Ljava/io/FileNotFoundException;
79 81 3 e Ljava/io/IOException;
83 85 3 e Ljava/security/NoSuchAlgorithmException;
87 89 3 e Ljava/security/NoSuchProviderException;
Exception table:
from to target type
2 18 19 Class java.security.KeyStoreException
2 18 23 Class java.security.cert.CertificateException
2 18 27 Class java.security.UnrecoverableKeyException
2 18 31 Class java.io.FileNotFoundException
2 18 35 Class java.io.IOException
2 18 39 Class java.security.NoSuchAlgorithmException
2 18 43 Class java.security.NoSuchProviderException
51 65 66 Class java.security.KeyStoreException
51 65 70 Class java.security.cert.CertificateException
51 65 74 Class java.io.FileNotFoundException
51 65 78 Class java.io.IOException
51 65 82 Class java.security.NoSuchAlgorithmException
51 65 86 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 47
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 9
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
StackMap locals:
StackMap stack:
6: 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;
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 5
start local 5 8: goto 12
end local 5 9: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
ifnull 10
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreType:Ljava/lang/String;
goto 11
StackMap locals:
StackMap stack:
10: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
11: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 5
start local 5 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 5
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 6
start local 6 14: aload 6
ifnonnull 16
15: ldc "ssl.KeyManagerFactory.algorithm"
invokestatic javax.net.ssl.KeyManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
16: StackMap locals: java.lang.String
StackMap stack:
aload 6
invokestatic javax.net.ssl.KeyManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
astore 4
17: aload 4
aload 5
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
ifnull 18
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyPass:[C
goto 19
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
18: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
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[]
19: invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
end local 6 end local 5 20: goto 47
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
21: astore 5
start local 5 22: 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
23: iload 1
ifeq 47
24: 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 25: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 5
start local 5 26: 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
27: iload 1
ifeq 47
28: 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 29: StackMap locals:
StackMap stack: java.security.UnrecoverableKeyException
astore 5
start local 5 30: 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
31: iload 1
ifeq 47
32: 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 33: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 5
start local 5 34: 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
35: iload 1
ifeq 47
36: 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 37: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 38: 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
39: iload 1
ifeq 47
40: 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 41: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 5
start local 5 42: 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
43: iload 1
ifeq 47
44: 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 45: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 5
start local 5 46: 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 47: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
ifnonnull 48
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreFile:Ljava/lang/String;
ifnull 87
48: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
ifnull 53
49: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 50
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 51
StackMap locals:
StackMap stack:
50: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
51: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreProvider:Ljava/lang/String;
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;
astore 5
start local 5 52: goto 56
end local 5 53: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
ifnull 54
aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreType:Ljava/lang/String;
goto 55
StackMap locals:
StackMap stack:
54: invokestatic java.security.KeyStore.getDefaultType:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
55: invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 5
start local 5 56: 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
57: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustManagerFactoryAlgorithm:Ljava/lang/String;
astore 6
start local 6 58: aload 6
ifnonnull 60
59: ldc "ssl.TrustManagerFactory.algorithm"
invokestatic javax.net.ssl.TrustManagerFactory.getDefaultAlgorithm:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
60: StackMap locals: java.lang.String
StackMap stack:
aload 6
invokestatic javax.net.ssl.TrustManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
astore 3
61: aload 3
aload 5
invokevirtual javax.net.ssl.TrustManagerFactory.init:(Ljava/security/KeyStore;)V
end local 6 end local 5 62: goto 87
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
63: astore 5
start local 5 64: 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
65: iload 1
ifeq 87
66: 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 67: StackMap locals:
StackMap stack: java.security.cert.CertificateException
astore 5
start local 5 68: 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
69: iload 1
ifeq 87
70: 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 71: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 5
start local 5 72: 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
73: iload 1
ifeq 87
74: 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 75: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 76: 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
77: iload 1
ifeq 87
78: 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 79: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 5
start local 5 80: 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
81: iload 1
ifeq 87
82: 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 83: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 5
start local 5 84: 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
85: iload 1
ifeq 87
86: 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 87: StackMap locals:
StackMap stack:
ldc "TLS"
astore 5
start local 5 88: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
ifnull 90
89: aload 0
getfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
astore 5
90: StackMap locals: java.lang.String
StackMap stack:
aload 5
invokestatic javax.net.ssl.SSLContext.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
astore 2
91: aload 2
aload 4
ifnull 92
aload 4
invokevirtual javax.net.ssl.KeyManagerFactory.getKeyManagers:()[Ljavax/net/ssl/KeyManager;
goto 93
StackMap locals:
StackMap stack: javax.net.ssl.SSLContext
92: aconst_null
93: 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 94
aload 3
invokevirtual javax.net.ssl.TrustManagerFactory.getTrustManagers:()[Ljavax/net/ssl/TrustManager;
goto 95
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[]
94: 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[]
95: aconst_null
96: 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 97: goto 106
StackMap locals: org.glassfish.grizzly.ssl.SSLContextConfigurator int javax.net.ssl.SSLContext
StackMap stack: java.security.KeyManagementException
98: 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;
ldc "Key management error."
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
100: iload 1
ifeq 106
101: 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 102: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 103: 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
104: iload 1
ifeq 106
105: 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 106: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 107 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 107 1 throwException Z
1 107 2 sslContext Ljavax/net/ssl/SSLContext;
2 97 3 trustManagerFactory Ljavax/net/ssl/TrustManagerFactory;
3 97 4 keyManagerFactory Ljavax/net/ssl/KeyManagerFactory;
8 9 5 keyStore Ljava/security/KeyStore;
12 20 5 keyStore Ljava/security/KeyStore;
14 20 6 kmfAlgorithm Ljava/lang/String;
22 25 5 e Ljava/security/KeyStoreException;
26 29 5 e Ljava/security/cert/CertificateException;
30 33 5 e Ljava/security/UnrecoverableKeyException;
34 37 5 e Ljava/io/FileNotFoundException;
38 41 5 e Ljava/io/IOException;
42 45 5 e Ljava/security/NoSuchAlgorithmException;
46 47 5 e Ljava/security/NoSuchProviderException;
52 53 5 trustStore Ljava/security/KeyStore;
56 62 5 trustStore Ljava/security/KeyStore;
58 62 6 tmfAlgorithm Ljava/lang/String;
64 67 5 e Ljava/security/KeyStoreException;
68 71 5 e Ljava/security/cert/CertificateException;
72 75 5 e Ljava/io/FileNotFoundException;
76 79 5 e Ljava/io/IOException;
80 83 5 e Ljava/security/NoSuchAlgorithmException;
84 87 5 e Ljava/security/NoSuchProviderException;
88 97 5 secProtocol Ljava/lang/String;
99 102 3 e Ljava/security/KeyManagementException;
103 106 3 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
4 20 21 Class java.security.KeyStoreException
4 20 25 Class java.security.cert.CertificateException
4 20 29 Class java.security.UnrecoverableKeyException
4 20 33 Class java.io.FileNotFoundException
4 20 37 Class java.io.IOException
4 20 41 Class java.security.NoSuchAlgorithmException
4 20 45 Class java.security.NoSuchProviderException
48 62 63 Class java.security.KeyStoreException
48 62 67 Class java.security.cert.CertificateException
48 62 71 Class java.io.FileNotFoundException
48 62 75 Class java.io.IOException
48 62 79 Class java.security.NoSuchAlgorithmException
48 62 83 Class java.security.NoSuchProviderException
1 97 98 Class java.security.KeyManagementException
1 97 102 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 7
5: aload 0
aload 1
ldc "javax.net.ssl.trustStorePassword"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.toCharArray:()[C
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStorePass:[C
8: StackMap locals:
StackMap stack:
aload 1
ldc "javax.net.ssl.keyStorePassword"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ifnull 11
9: 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
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStorePass:[C
12: 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;
13: 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;
14: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.trustStoreBytes:[B
15: aload 0
aconst_null
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.keyStoreBytes:[B
16: aload 0
ldc "TLS"
putfield org.glassfish.grizzly.ssl.SSLContextConfigurator.securityProtocol:Ljava/lang/String;
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/ssl/SSLContextConfigurator;
0 18 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