public final class org.apache.cassandra.security.SSLFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.security.SSLFactory
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static boolean checkedExpiry;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/security/SSLFactory;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.security.SSLFactory.logger:Lorg/slf4j/Logger;
1: iconst_0
putstatic org.apache.cassandra.security.SSLFactory.checkedExpiry:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/security/SSLFactory;
public static javax.net.ssl.SSLServerSocket getServerSocket(org.apache.cassandra.config.EncryptionOptions, java.net.InetAddress, int);
descriptor: (Lorg/apache/cassandra/config/EncryptionOptions;Ljava/net/InetAddress;I)Ljavax/net/ssl/SSLServerSocket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
invokestatic org.apache.cassandra.security.SSLFactory.createSSLContext:(Lorg/apache/cassandra/config/EncryptionOptions;Z)Ljavax/net/ssl/SSLContext;
astore 3
start local 3 1: aload 3
invokevirtual javax.net.ssl.SSLContext.getServerSocketFactory:()Ljavax/net/ssl/SSLServerSocketFactory;
invokevirtual javax.net.ssl.SSLServerSocketFactory.createServerSocket:()Ljava/net/ServerSocket;
checkcast javax.net.ssl.SSLServerSocket
astore 4
start local 4 2: aload 4
iconst_1
invokevirtual javax.net.ssl.SSLServerSocket.setReuseAddress:(Z)V
3: aload 4
aload 0
invokestatic org.apache.cassandra.security.SSLFactory.prepareSocket:(Ljavax/net/ssl/SSLServerSocket;Lorg/apache/cassandra/config/EncryptionOptions;)V
4: aload 4
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
sipush 500
invokevirtual javax.net.ssl.SSLServerSocket.bind:(Ljava/net/SocketAddress;I)V
5: aload 4
6: areturn
7: StackMap locals: org.apache.cassandra.config.EncryptionOptions java.net.InetAddress int javax.net.ssl.SSLContext javax.net.ssl.SSLServerSocket
StackMap stack: java.lang.Exception
astore 5
start local 5 8: aload 4
invokevirtual javax.net.ssl.SSLServerSocket.close:()V
9: aload 5
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 options Lorg/apache/cassandra/config/EncryptionOptions;
0 10 1 address Ljava/net/InetAddress;
0 10 2 port I
1 10 3 ctx Ljavax/net/ssl/SSLContext;
2 10 4 serverSocket Ljavax/net/ssl/SSLServerSocket;
8 10 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 6 7 Class java.lang.IllegalArgumentException
2 6 7 Class java.lang.SecurityException
2 6 7 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
options
address
port
public static javax.net.ssl.SSLSocket getSocket(org.apache.cassandra.config.EncryptionOptions, java.net.InetAddress, int, java.net.InetAddress, int);
descriptor: (Lorg/apache/cassandra/config/EncryptionOptions;Ljava/net/InetAddress;ILjava/net/InetAddress;I)Ljavax/net/ssl/SSLSocket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iconst_1
invokestatic org.apache.cassandra.security.SSLFactory.createSSLContext:(Lorg/apache/cassandra/config/EncryptionOptions;Z)Ljavax/net/ssl/SSLContext;
astore 5
start local 5 1: aload 5
invokevirtual javax.net.ssl.SSLContext.getSocketFactory:()Ljavax/net/ssl/SSLSocketFactory;
aload 1
iload 2
aload 3
iload 4
invokevirtual javax.net.ssl.SSLSocketFactory.createSocket:(Ljava/net/InetAddress;ILjava/net/InetAddress;I)Ljava/net/Socket;
checkcast javax.net.ssl.SSLSocket
astore 6
start local 6 2: aload 6
aload 0
invokestatic org.apache.cassandra.security.SSLFactory.prepareSocket:(Ljavax/net/ssl/SSLSocket;Lorg/apache/cassandra/config/EncryptionOptions;)V
3: aload 6
4: areturn
5: StackMap locals: org.apache.cassandra.config.EncryptionOptions java.net.InetAddress int java.net.InetAddress int javax.net.ssl.SSLContext javax.net.ssl.SSLSocket
StackMap stack: java.lang.IllegalArgumentException
astore 7
start local 7 6: aload 6
invokevirtual javax.net.ssl.SSLSocket.close:()V
7: aload 7
athrow
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 options Lorg/apache/cassandra/config/EncryptionOptions;
0 8 1 address Ljava/net/InetAddress;
0 8 2 port I
0 8 3 localAddress Ljava/net/InetAddress;
0 8 4 localPort I
1 8 5 ctx Ljavax/net/ssl/SSLContext;
2 8 6 socket Ljavax/net/ssl/SSLSocket;
6 8 7 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
2 4 5 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
options
address
port
localAddress
localPort
public static javax.net.ssl.SSLSocket getSocket(org.apache.cassandra.config.EncryptionOptions, java.net.InetAddress, int);
descriptor: (Lorg/apache/cassandra/config/EncryptionOptions;Ljava/net/InetAddress;I)Ljavax/net/ssl/SSLSocket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
invokestatic org.apache.cassandra.security.SSLFactory.createSSLContext:(Lorg/apache/cassandra/config/EncryptionOptions;Z)Ljavax/net/ssl/SSLContext;
astore 3
start local 3 1: aload 3
invokevirtual javax.net.ssl.SSLContext.getSocketFactory:()Ljavax/net/ssl/SSLSocketFactory;
aload 1
iload 2
invokevirtual javax.net.ssl.SSLSocketFactory.createSocket:(Ljava/net/InetAddress;I)Ljava/net/Socket;
checkcast javax.net.ssl.SSLSocket
astore 4
start local 4 2: aload 4
aload 0
invokestatic org.apache.cassandra.security.SSLFactory.prepareSocket:(Ljavax/net/ssl/SSLSocket;Lorg/apache/cassandra/config/EncryptionOptions;)V
3: aload 4
4: areturn
5: StackMap locals: org.apache.cassandra.config.EncryptionOptions java.net.InetAddress int javax.net.ssl.SSLContext javax.net.ssl.SSLSocket
StackMap stack: java.lang.IllegalArgumentException
astore 5
start local 5 6: aload 4
invokevirtual javax.net.ssl.SSLSocket.close:()V
7: aload 5
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 options Lorg/apache/cassandra/config/EncryptionOptions;
0 8 1 address Ljava/net/InetAddress;
0 8 2 port I
1 8 3 ctx Ljavax/net/ssl/SSLContext;
2 8 4 socket Ljavax/net/ssl/SSLSocket;
6 8 5 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
2 4 5 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
options
address
port
public static javax.net.ssl.SSLSocket getSocket(org.apache.cassandra.config.EncryptionOptions);
descriptor: (Lorg/apache/cassandra/config/EncryptionOptions;)Ljavax/net/ssl/SSLSocket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
iconst_1
invokestatic org.apache.cassandra.security.SSLFactory.createSSLContext:(Lorg/apache/cassandra/config/EncryptionOptions;Z)Ljavax/net/ssl/SSLContext;
astore 1
start local 1 1: aload 1
invokevirtual javax.net.ssl.SSLContext.getSocketFactory:()Ljavax/net/ssl/SSLSocketFactory;
invokevirtual javax.net.ssl.SSLSocketFactory.createSocket:()Ljava/net/Socket;
checkcast javax.net.ssl.SSLSocket
astore 2
start local 2 2: aload 2
aload 0
invokestatic org.apache.cassandra.security.SSLFactory.prepareSocket:(Ljavax/net/ssl/SSLSocket;Lorg/apache/cassandra/config/EncryptionOptions;)V
3: aload 2
4: areturn
5: StackMap locals: org.apache.cassandra.config.EncryptionOptions javax.net.ssl.SSLContext javax.net.ssl.SSLSocket
StackMap stack: java.lang.IllegalArgumentException
astore 3
start local 3 6: aload 2
invokevirtual javax.net.ssl.SSLSocket.close:()V
7: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 options Lorg/apache/cassandra/config/EncryptionOptions;
1 8 1 ctx Ljavax/net/ssl/SSLContext;
2 8 2 socket Ljavax/net/ssl/SSLSocket;
6 8 3 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
2 4 5 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
options
private static void prepareSocket(javax.net.ssl.SSLServerSocket, org.apache.cassandra.config.EncryptionOptions);
descriptor: (Ljavax/net/ssl/SSLServerSocket;Lorg/apache/cassandra/config/EncryptionOptions;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.net.ssl.SSLServerSocket.getSupportedCipherSuites:()[Ljava/lang/String;
aload 1
getfield org.apache.cassandra.config.EncryptionOptions.cipher_suites:[Ljava/lang/String;
invokestatic org.apache.cassandra.security.SSLFactory.filterCipherSuites:([Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: aload 1
getfield org.apache.cassandra.config.EncryptionOptions.require_endpoint_verification:Z
ifeq 5
2: aload 0
invokevirtual javax.net.ssl.SSLServerSocket.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
astore 3
start local 3 3: aload 3
ldc "HTTPS"
invokevirtual javax.net.ssl.SSLParameters.setEndpointIdentificationAlgorithm:(Ljava/lang/String;)V
4: aload 0
aload 3
invokevirtual javax.net.ssl.SSLServerSocket.setSSLParameters:(Ljavax/net/ssl/SSLParameters;)V
end local 3 5: StackMap locals: java.lang.String[]
StackMap stack:
aload 0
aload 2
invokevirtual javax.net.ssl.SSLServerSocket.setEnabledCipherSuites:([Ljava/lang/String;)V
6: aload 0
aload 1
getfield org.apache.cassandra.config.EncryptionOptions.require_client_auth:Z
invokevirtual javax.net.ssl.SSLServerSocket.setNeedClientAuth:(Z)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 serverSocket Ljavax/net/ssl/SSLServerSocket;
0 8 1 options Lorg/apache/cassandra/config/EncryptionOptions;
1 8 2 suites [Ljava/lang/String;
3 5 3 sslParameters Ljavax/net/ssl/SSLParameters;
MethodParameters:
Name Flags
serverSocket
options
private static void prepareSocket(javax.net.ssl.SSLSocket, org.apache.cassandra.config.EncryptionOptions);
descriptor: (Ljavax/net/ssl/SSLSocket;Lorg/apache/cassandra/config/EncryptionOptions;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual javax.net.ssl.SSLSocket.getSupportedCipherSuites:()[Ljava/lang/String;
aload 1
getfield org.apache.cassandra.config.EncryptionOptions.cipher_suites:[Ljava/lang/String;
invokestatic org.apache.cassandra.security.SSLFactory.filterCipherSuites:([Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: aload 1
getfield org.apache.cassandra.config.EncryptionOptions.require_endpoint_verification:Z
ifeq 5
2: aload 0
invokevirtual javax.net.ssl.SSLSocket.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
astore 3
start local 3 3: aload 3
ldc "HTTPS"
invokevirtual javax.net.ssl.SSLParameters.setEndpointIdentificationAlgorithm:(Ljava/lang/String;)V
4: aload 0
aload 3
invokevirtual javax.net.ssl.SSLSocket.setSSLParameters:(Ljavax/net/ssl/SSLParameters;)V
end local 3 5: StackMap locals: java.lang.String[]
StackMap stack:
aload 0
aload 2
invokevirtual javax.net.ssl.SSLSocket.setEnabledCipherSuites:([Ljava/lang/String;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 socket Ljavax/net/ssl/SSLSocket;
0 7 1 options Lorg/apache/cassandra/config/EncryptionOptions;
1 7 2 suites [Ljava/lang/String;
3 5 3 sslParameters Ljavax/net/ssl/SSLParameters;
MethodParameters:
Name Flags
socket
options
public static javax.net.ssl.SSLContext createSSLContext(org.apache.cassandra.config.EncryptionOptions, boolean);
descriptor: (Lorg/apache/cassandra/config/EncryptionOptions;Z)Ljavax/net/ssl/SSLContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=12, 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: aload 0
getfield org.apache.cassandra.config.EncryptionOptions.protocol:Ljava/lang/String;
invokestatic javax.net.ssl.SSLContext.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
astore 4
start local 4 3: aconst_null
astore 5
start local 5 4: iload 1
ifeq 11
5: new java.io.FileInputStream
dup
aload 0
getfield org.apache.cassandra.config.EncryptionOptions.truststore:Ljava/lang/String;
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 2
6: aload 0
getfield org.apache.cassandra.config.EncryptionOptions.algorithm:Ljava/lang/String;
invokestatic javax.net.ssl.TrustManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;
astore 6
start local 6 7: aload 0
getfield org.apache.cassandra.config.EncryptionOptions.store_type:Ljava/lang/String;
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 7
start local 7 8: aload 7
aload 2
aload 0
getfield org.apache.cassandra.config.EncryptionOptions.truststore_password:Ljava/lang/String;
invokevirtual java.lang.String.toCharArray:()[C
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
9: aload 6
aload 7
invokevirtual javax.net.ssl.TrustManagerFactory.init:(Ljava/security/KeyStore;)V
10: aload 6
invokevirtual javax.net.ssl.TrustManagerFactory.getTrustManagers:()[Ljavax/net/ssl/TrustManager;
astore 5
end local 7 end local 6 11: StackMap locals: org.apache.cassandra.config.EncryptionOptions int java.io.FileInputStream java.io.FileInputStream javax.net.ssl.SSLContext javax.net.ssl.TrustManager[]
StackMap stack:
new java.io.FileInputStream
dup
aload 0
getfield org.apache.cassandra.config.EncryptionOptions.keystore:Ljava/lang/String;
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 3
12: aload 0
getfield org.apache.cassandra.config.EncryptionOptions.algorithm:Ljava/lang/String;
invokestatic javax.net.ssl.KeyManagerFactory.getInstance:(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;
astore 6
start local 6 13: aload 0
getfield org.apache.cassandra.config.EncryptionOptions.store_type:Ljava/lang/String;
invokestatic java.security.KeyStore.getInstance:(Ljava/lang/String;)Ljava/security/KeyStore;
astore 7
start local 7 14: aload 7
aload 3
aload 0
getfield org.apache.cassandra.config.EncryptionOptions.keystore_password:Ljava/lang/String;
invokevirtual java.lang.String.toCharArray:()[C
invokevirtual java.security.KeyStore.load:(Ljava/io/InputStream;[C)V
15: getstatic org.apache.cassandra.security.SSLFactory.checkedExpiry:Z
ifne 25
16: aload 7
invokevirtual java.security.KeyStore.aliases:()Ljava/util/Enumeration;
astore 8
start local 8 17: goto 23
18: StackMap locals: javax.net.ssl.KeyManagerFactory java.security.KeyStore java.util.Enumeration
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 19: aload 7
aload 9
invokevirtual java.security.KeyStore.getCertificate:(Ljava/lang/String;)Ljava/security/cert/Certificate;
invokevirtual java.security.cert.Certificate.getType:()Ljava/lang/String;
ldc "X.509"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 23
20: aload 7
aload 9
invokevirtual java.security.KeyStore.getCertificate:(Ljava/lang/String;)Ljava/security/cert/Certificate;
checkcast java.security.cert.X509Certificate
invokevirtual java.security.cert.X509Certificate.getNotAfter:()Ljava/util/Date;
astore 10
start local 10 21: aload 10
new java.util.Date
dup
invokespecial java.util.Date.<init>:()V
invokevirtual java.util.Date.before:(Ljava/util/Date;)Z
ifeq 23
22: getstatic org.apache.cassandra.security.SSLFactory.logger:Lorg/slf4j/Logger;
ldc "Certificate for {} expired on {}"
aload 9
aload 10
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 10 end local 9 23: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 18
end local 8 24: iconst_1
putstatic org.apache.cassandra.security.SSLFactory.checkedExpiry:Z
25: StackMap locals:
StackMap stack:
aload 6
aload 7
aload 0
getfield org.apache.cassandra.config.EncryptionOptions.keystore_password:Ljava/lang/String;
invokevirtual java.lang.String.toCharArray:()[C
invokevirtual javax.net.ssl.KeyManagerFactory.init:(Ljava/security/KeyStore;[C)V
26: aload 4
aload 6
invokevirtual javax.net.ssl.KeyManagerFactory.getKeyManagers:()[Ljavax/net/ssl/KeyManager;
aload 5
aconst_null
invokevirtual javax.net.ssl.SSLContext.init:([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V
end local 7 end local 6 end local 5 27: goto 34
end local 4 28: StackMap locals: org.apache.cassandra.config.EncryptionOptions int java.io.FileInputStream java.io.FileInputStream
StackMap stack: java.lang.Exception
astore 5
start local 5 29: new java.io.IOException
dup
ldc "Error creating the initializing the SSL Context"
aload 5
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 30: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
31: aload 2
invokestatic org.apache.cassandra.io.util.FileUtils.closeQuietly:(Ljava/io/Closeable;)V
32: aload 3
invokestatic org.apache.cassandra.io.util.FileUtils.closeQuietly:(Ljava/io/Closeable;)V
33: aload 11
athrow
start local 4 34: StackMap locals: javax.net.ssl.SSLContext
StackMap stack:
aload 2
invokestatic org.apache.cassandra.io.util.FileUtils.closeQuietly:(Ljava/io/Closeable;)V
35: aload 3
invokestatic org.apache.cassandra.io.util.FileUtils.closeQuietly:(Ljava/io/Closeable;)V
36: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 options Lorg/apache/cassandra/config/EncryptionOptions;
0 37 1 buildTruststore Z
1 37 2 tsf Ljava/io/FileInputStream;
2 37 3 ksf Ljava/io/FileInputStream;
3 28 4 ctx Ljavax/net/ssl/SSLContext;
34 37 4 ctx Ljavax/net/ssl/SSLContext;
4 27 5 trustManagers [Ljavax/net/ssl/TrustManager;
7 11 6 tmf Ljavax/net/ssl/TrustManagerFactory;
8 11 7 ts Ljava/security/KeyStore;
13 27 6 kmf Ljavax/net/ssl/KeyManagerFactory;
14 27 7 ks Ljava/security/KeyStore;
17 24 8 aliases Ljava/util/Enumeration<Ljava/lang/String;>;
19 23 9 alias Ljava/lang/String;
21 23 10 expires Ljava/util/Date;
29 30 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 27 28 Class java.lang.Exception
2 30 30 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
options
buildTruststore
public static java.lang.String[] filterCipherSuites(java.lang.String[], java.lang.String[]);
descriptor: ([Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Arrays.equals:([Ljava/lang/Object;[Ljava/lang/Object;)Z
ifeq 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 3: aload 0
invokestatic com.google.common.collect.ImmutableSet.copyOf:([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
astore 3
start local 3 4: aload 2
aload 3
invokestatic com.google.common.base.Predicates.in:(Ljava/util/Collection;)Lcom/google/common/base/Predicate;
invokestatic com.google.common.collect.Iterables.filter:(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable;
ldc Ljava/lang/String;
invokestatic com.google.common.collect.Iterables.toArray:(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 4
start local 4 5: aload 1
arraylength
aload 4
arraylength
if_icmple 8
getstatic org.apache.cassandra.security.SSLFactory.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isWarnEnabled:()Z
ifeq 8
6: aload 2
aload 4
invokestatic com.google.common.collect.Sets.newHashSet:([Ljava/lang/Object;)Ljava/util/HashSet;
invokestatic com.google.common.base.Predicates.in:(Ljava/util/Collection;)Lcom/google/common/base/Predicate;
invokestatic com.google.common.base.Predicates.not:(Lcom/google/common/base/Predicate;)Lcom/google/common/base/Predicate;
invokestatic com.google.common.collect.Iterables.filter:(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable;
astore 5
start local 5 7: getstatic org.apache.cassandra.security.SSLFactory.logger:Lorg/slf4j/Logger;
ldc "Filtering out {} as it isn't supported by the socket"
aload 5
invokestatic com.google.common.collect.Iterables.toString:(Ljava/lang/Iterable;)Ljava/lang/String;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
end local 5 8: StackMap locals: java.util.List com.google.common.collect.ImmutableSet java.lang.String[]
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 supported [Ljava/lang/String;
0 9 1 desired [Ljava/lang/String;
3 9 2 ldesired Ljava/util/List<Ljava/lang/String;>;
4 9 3 ssupported Lcom/google/common/collect/ImmutableSet<Ljava/lang/String;>;
5 9 4 ret [Ljava/lang/String;
7 8 5 missing Ljava/lang/Iterable<Ljava/lang/String;>;
MethodParameters:
Name Flags
supported
desired
}
SourceFile: "SSLFactory.java"