public class org.apache.cassandra.security.CipherFactory
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.security.CipherFactory
  super_class: java.lang.Object
{
  private final org.slf4j.Logger logger;
    descriptor: Lorg/slf4j/Logger;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private static final io.netty.util.concurrent.FastThreadLocal<org.apache.cassandra.security.CipherFactory$CachedCipher> cipherThreadLocal;
    descriptor: Lio/netty/util/concurrent/FastThreadLocal;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Lio/netty/util/concurrent/FastThreadLocal<Lorg/apache/cassandra/security/CipherFactory$CachedCipher;>;

  private final java.security.SecureRandom secureRandom;
    descriptor: Ljava/security/SecureRandom;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final com.google.common.cache.LoadingCache<java.lang.String, java.security.Key> cache;
    descriptor: Lcom/google/common/cache/LoadingCache;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lcom/google/common/cache/LoadingCache<Ljava/lang/String;Ljava/security/Key;>;

  private final int ivLength;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.apache.cassandra.security.KeyProvider keyProvider;
    descriptor: Lorg/apache/cassandra/security/KeyProvider;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 49
            ldc Lorg/apache/cassandra/security/CipherFactory;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.apache.cassandra.security.CipherFactory.$assertionsDisabled:Z
         3: .line 58
            new io.netty.util.concurrent.FastThreadLocal
            dup
            invokespecial io.netty.util.concurrent.FastThreadLocal.<init>:()V
            putstatic org.apache.cassandra.security.CipherFactory.cipherThreadLocal:Lio/netty/util/concurrent/FastThreadLocal;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(org.apache.cassandra.config.TransparentDataEncryptionOptions);
    descriptor: (Lorg/apache/cassandra/config/TransparentDataEncryptionOptions;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=2
        start local 0 // org.apache.cassandra.security.CipherFactory this
        start local 1 // org.apache.cassandra.config.TransparentDataEncryptionOptions options
         0: .line 65
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 51
            aload 0 /* this */
            ldc Lorg/apache/cassandra/security/CipherFactory;
            invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
            putfield org.apache.cassandra.security.CipherFactory.logger:Lorg/slf4j/Logger;
         2: .line 67
            aload 0 /* this */
            getfield org.apache.cassandra.security.CipherFactory.logger:Lorg/slf4j/Logger;
            ldc "initializing CipherFactory"
            invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
         3: .line 68
            aload 0 /* this */
            aload 1 /* options */
            getfield org.apache.cassandra.config.TransparentDataEncryptionOptions.iv_length:I
            putfield org.apache.cassandra.security.CipherFactory.ivLength:I
         4: .line 72
            aload 0 /* this */
            ldc "SHA1PRNG"
            invokestatic java.security.SecureRandom.getInstance:(Ljava/lang/String;)Ljava/security/SecureRandom;
            putfield org.apache.cassandra.security.CipherFactory.secureRandom:Ljava/security/SecureRandom;
         5: .line 73
            aload 1 /* options */
            getfield org.apache.cassandra.config.TransparentDataEncryptionOptions.key_provider:Lorg/apache/cassandra/config/ParameterizedClass;
            getfield org.apache.cassandra.config.ParameterizedClass.class_name:Ljava/lang/String;
            invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
            astore 2 /* keyProviderClass */
        start local 2 // java.lang.Class keyProviderClass
         6: .line 74
            aload 2 /* keyProviderClass */
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            ldc Lorg/apache/cassandra/config/TransparentDataEncryptionOptions;
            aastore
            invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
            astore 3 /* ctor */
        start local 3 // java.lang.reflect.Constructor ctor
         7: .line 75
            aload 0 /* this */
            aload 3 /* ctor */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* options */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.apache.cassandra.security.KeyProvider
            putfield org.apache.cassandra.security.CipherFactory.keyProvider:Lorg/apache/cassandra/security/KeyProvider;
        end local 3 // java.lang.reflect.Constructor ctor
        end local 2 // java.lang.Class keyProviderClass
         8: .line 76
            goto 11
         9: .line 77
      StackMap locals: org.apache.cassandra.security.CipherFactory org.apache.cassandra.config.TransparentDataEncryptionOptions
      StackMap stack: java.lang.Exception
            astore 2 /* e */
        start local 2 // java.lang.Exception e
        10: .line 79
            new java.lang.RuntimeException
            dup
            ldc "couldn't load cipher factory"
            aload 2 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Exception e
        11: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokestatic com.google.common.cache.CacheBuilder.newBuilder:()Lcom/google/common/cache/CacheBuilder;
        12: .line 83
            ldc 64
            invokevirtual com.google.common.cache.CacheBuilder.maximumSize:(J)Lcom/google/common/cache/CacheBuilder;
        13: .line 84
            invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
            invokevirtual java.lang.Runtime.availableProcessors:()I
            invokevirtual com.google.common.cache.CacheBuilder.concurrencyLevel:(I)Lcom/google/common/cache/CacheBuilder;
        14: .line 85
            new org.apache.cassandra.security.CipherFactory$1
            dup
            aload 0 /* this */
            invokespecial org.apache.cassandra.security.CipherFactory$1.<init>:(Lorg/apache/cassandra/security/CipherFactory;)V
            invokevirtual com.google.common.cache.CacheBuilder.removalListener:(Lcom/google/common/cache/RemovalListener;)Lcom/google/common/cache/CacheBuilder;
        15: .line 93
            new org.apache.cassandra.security.CipherFactory$2
            dup
            aload 0 /* this */
            invokespecial org.apache.cassandra.security.CipherFactory$2.<init>:(Lorg/apache/cassandra/security/CipherFactory;)V
            invokevirtual com.google.common.cache.CacheBuilder.build:(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;
        16: .line 82
            putfield org.apache.cassandra.security.CipherFactory.cache:Lcom/google/common/cache/LoadingCache;
        17: .line 102
            return
        end local 1 // org.apache.cassandra.config.TransparentDataEncryptionOptions options
        end local 0 // org.apache.cassandra.security.CipherFactory this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   18     0              this  Lorg/apache/cassandra/security/CipherFactory;
            0   18     1           options  Lorg/apache/cassandra/config/TransparentDataEncryptionOptions;
            6    8     2  keyProviderClass  Ljava/lang/Class<Lorg/apache/cassandra/security/KeyProvider;>;
            7    8     3              ctor  Ljava/lang/reflect/Constructor;
           10   11     2                 e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           4     8       9  Class java.lang.Exception
    MethodParameters:
         Name  Flags
      options  

  public javax.crypto.Cipher getEncryptor(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Cipher;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // org.apache.cassandra.security.CipherFactory this
        start local 1 // java.lang.String transformation
        start local 2 // java.lang.String keyAlias
         0: .line 106
            aload 0 /* this */
            getfield org.apache.cassandra.security.CipherFactory.ivLength:I
            newarray 8
            astore 3 /* iv */
        start local 3 // byte[] iv
         1: .line 107
            aload 0 /* this */
            getfield org.apache.cassandra.security.CipherFactory.secureRandom:Ljava/security/SecureRandom;
            aload 3 /* iv */
            invokevirtual java.security.SecureRandom.nextBytes:([B)V
         2: .line 108
            aload 0 /* this */
            aload 1 /* transformation */
            aload 2 /* keyAlias */
            aload 3 /* iv */
            iconst_1
            invokevirtual org.apache.cassandra.security.CipherFactory.buildCipher:(Ljava/lang/String;Ljava/lang/String;[BI)Ljavax/crypto/Cipher;
            areturn
        end local 3 // byte[] iv
        end local 2 // java.lang.String keyAlias
        end local 1 // java.lang.String transformation
        end local 0 // org.apache.cassandra.security.CipherFactory this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    3     0            this  Lorg/apache/cassandra/security/CipherFactory;
            0    3     1  transformation  Ljava/lang/String;
            0    3     2        keyAlias  Ljava/lang/String;
            1    3     3              iv  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      transformation  
      keyAlias        

  public javax.crypto.Cipher getDecryptor(java.lang.String, java.lang.String, byte[]);
    descriptor: (Ljava/lang/String;Ljava/lang/String;[B)Ljavax/crypto/Cipher;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // org.apache.cassandra.security.CipherFactory this
        start local 1 // java.lang.String transformation
        start local 2 // java.lang.String keyAlias
        start local 3 // byte[] iv
         0: .line 113
            getstatic org.apache.cassandra.security.CipherFactory.$assertionsDisabled:Z
            ifne 2
            aload 3 /* iv */
            ifnull 1
            aload 3 /* iv */
            arraylength
            ifgt 2
      StackMap locals:
      StackMap stack:
         1: new java.lang.AssertionError
            dup
            ldc "trying to decrypt, but the initialization vector is empty"
            invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
            athrow
         2: .line 114
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* transformation */
            aload 2 /* keyAlias */
            aload 3 /* iv */
            iconst_2
            invokevirtual org.apache.cassandra.security.CipherFactory.buildCipher:(Ljava/lang/String;Ljava/lang/String;[BI)Ljavax/crypto/Cipher;
            areturn
        end local 3 // byte[] iv
        end local 2 // java.lang.String keyAlias
        end local 1 // java.lang.String transformation
        end local 0 // org.apache.cassandra.security.CipherFactory this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    3     0            this  Lorg/apache/cassandra/security/CipherFactory;
            0    3     1  transformation  Ljava/lang/String;
            0    3     2        keyAlias  Ljava/lang/String;
            0    3     3              iv  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      transformation  
      keyAlias        
      iv              

  javax.crypto.Cipher buildCipher(java.lang.String, java.lang.String, byte[], int);
    descriptor: (Ljava/lang/String;Ljava/lang/String;[BI)Ljavax/crypto/Cipher;
    flags: (0x0000) 
    Code:
      stack=6, locals=8, args_size=5
        start local 0 // org.apache.cassandra.security.CipherFactory this
        start local 1 // java.lang.String transformation
        start local 2 // java.lang.String keyAlias
        start local 3 // byte[] iv
        start local 4 // int cipherMode
         0: .line 122
            getstatic org.apache.cassandra.security.CipherFactory.cipherThreadLocal:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.security.CipherFactory$CachedCipher
            astore 5 /* cachedCipher */
        start local 5 // org.apache.cassandra.security.CipherFactory$CachedCipher cachedCipher
         1: .line 123
            aload 5 /* cachedCipher */
            ifnull 7
         2: .line 125
            aload 5 /* cachedCipher */
            getfield org.apache.cassandra.security.CipherFactory$CachedCipher.cipher:Ljavax/crypto/Cipher;
            astore 6 /* cipher */
        start local 6 // javax.crypto.Cipher cipher
         3: .line 127
            aload 5 /* cachedCipher */
            getfield org.apache.cassandra.security.CipherFactory$CachedCipher.mode:I
            iload 4 /* cipherMode */
            if_icmpne 7
            aload 6 /* cipher */
            invokevirtual javax.crypto.Cipher.getAlgorithm:()Ljava/lang/String;
            aload 1 /* transformation */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
         4: .line 128
            aload 5 /* cachedCipher */
            getfield org.apache.cassandra.security.CipherFactory$CachedCipher.keyAlias:Ljava/lang/String;
            aload 2 /* keyAlias */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
            aload 6 /* cipher */
            invokevirtual javax.crypto.Cipher.getIV:()[B
            aload 3 /* iv */
            invokestatic java.util.Arrays.equals:([B[B)Z
            ifeq 7
         5: .line 129
            aload 6 /* cipher */
         6: areturn
        end local 6 // javax.crypto.Cipher cipher
         7: .line 132
      StackMap locals: org.apache.cassandra.security.CipherFactory$CachedCipher
      StackMap stack:
            aload 0 /* this */
            aload 2 /* keyAlias */
            invokevirtual org.apache.cassandra.security.CipherFactory.retrieveKey:(Ljava/lang/String;)Ljava/security/Key;
            astore 6 /* key */
        start local 6 // java.security.Key key
         8: .line 133
            aload 1 /* transformation */
            invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
            astore 7 /* cipher */
        start local 7 // javax.crypto.Cipher cipher
         9: .line 134
            aload 7 /* cipher */
            iload 4 /* cipherMode */
            aload 6 /* key */
            new javax.crypto.spec.IvParameterSpec
            dup
            aload 3 /* iv */
            invokespecial javax.crypto.spec.IvParameterSpec.<init>:([B)V
            invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
        10: .line 135
            getstatic org.apache.cassandra.security.CipherFactory.cipherThreadLocal:Lio/netty/util/concurrent/FastThreadLocal;
            new org.apache.cassandra.security.CipherFactory$CachedCipher
            dup
            iload 4 /* cipherMode */
            aload 2 /* keyAlias */
            aload 7 /* cipher */
            invokespecial org.apache.cassandra.security.CipherFactory$CachedCipher.<init>:(ILjava/lang/String;Ljavax/crypto/Cipher;)V
            invokevirtual io.netty.util.concurrent.FastThreadLocal.set:(Ljava/lang/Object;)V
        11: .line 136
            aload 7 /* cipher */
        12: areturn
        end local 7 // javax.crypto.Cipher cipher
        end local 6 // java.security.Key key
        end local 5 // org.apache.cassandra.security.CipherFactory$CachedCipher cachedCipher
        13: .line 138
      StackMap locals: org.apache.cassandra.security.CipherFactory java.lang.String java.lang.String byte[] int
      StackMap stack: java.security.GeneralSecurityException
            astore 5 /* e */
        start local 5 // java.security.GeneralSecurityException e
        14: .line 140
            aload 0 /* this */
            getfield org.apache.cassandra.security.CipherFactory.logger:Lorg/slf4j/Logger;
            ldc "could not build cipher"
            aload 5 /* e */
            invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
        15: .line 141
            new java.io.IOException
            dup
            ldc "cannot load cipher"
            aload 5 /* e */
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 5 // java.security.GeneralSecurityException e
        end local 4 // int cipherMode
        end local 3 // byte[] iv
        end local 2 // java.lang.String keyAlias
        end local 1 // java.lang.String transformation
        end local 0 // org.apache.cassandra.security.CipherFactory this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   16     0            this  Lorg/apache/cassandra/security/CipherFactory;
            0   16     1  transformation  Ljava/lang/String;
            0   16     2        keyAlias  Ljava/lang/String;
            0   16     3              iv  [B
            0   16     4      cipherMode  I
            1   13     5    cachedCipher  Lorg/apache/cassandra/security/CipherFactory$CachedCipher;
            3    7     6          cipher  Ljavax/crypto/Cipher;
            8   13     6             key  Ljava/security/Key;
            9   13     7          cipher  Ljavax/crypto/Cipher;
           14   16     5               e  Ljava/security/GeneralSecurityException;
      Exception table:
        from    to  target  type
           0     6      13  Class java.security.NoSuchAlgorithmException
           7    12      13  Class java.security.NoSuchAlgorithmException
           0     6      13  Class javax.crypto.NoSuchPaddingException
           7    12      13  Class javax.crypto.NoSuchPaddingException
           0     6      13  Class java.security.InvalidAlgorithmParameterException
           7    12      13  Class java.security.InvalidAlgorithmParameterException
           0     6      13  Class java.security.InvalidKeyException
           7    12      13  Class java.security.InvalidKeyException
    Exceptions:
      throws java.io.IOException
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()
    RuntimeInvisibleTypeAnnotations: 
      METHOD_RETURN
        com.google.common.annotations.VisibleForTesting()
    MethodParameters:
                Name  Flags
      transformation  
      keyAlias        
      iv              
      cipherMode      

  private java.security.Key retrieveKey(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/security/Key;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // org.apache.cassandra.security.CipherFactory this
        start local 1 // java.lang.String keyAlias
         0: .line 149
            aload 0 /* this */
            getfield org.apache.cassandra.security.CipherFactory.cache:Lcom/google/common/cache/LoadingCache;
            aload 1 /* keyAlias */
            invokeinterface com.google.common.cache.LoadingCache.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.security.Key
         1: areturn
         2: .line 151
      StackMap locals:
      StackMap stack: java.util.concurrent.ExecutionException
            astore 2 /* e */
        start local 2 // java.util.concurrent.ExecutionException e
         3: .line 153
            aload 2 /* e */
            invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
            instanceof java.io.IOException
            ifeq 5
         4: .line 154
            aload 2 /* e */
            invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
            checkcast java.io.IOException
            athrow
         5: .line 155
      StackMap locals: java.util.concurrent.ExecutionException
      StackMap stack:
            new java.io.IOException
            dup
            new java.lang.StringBuilder
            dup
            ldc "failed to load key from cache: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* keyAlias */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 2 /* e */
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.util.concurrent.ExecutionException e
        end local 1 // java.lang.String keyAlias
        end local 0 // org.apache.cassandra.security.CipherFactory this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lorg/apache/cassandra/security/CipherFactory;
            0    6     1  keyAlias  Ljava/lang/String;
            3    6     2         e  Ljava/util/concurrent/ExecutionException;
      Exception table:
        from    to  target  type
           0     1       2  Class java.util.concurrent.ExecutionException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      keyAlias  
}
SourceFile: "CipherFactory.java"
NestMembers:
  org.apache.cassandra.security.CipherFactory$1  org.apache.cassandra.security.CipherFactory$2  org.apache.cassandra.security.CipherFactory$CachedCipher
InnerClasses:
  org.apache.cassandra.security.CipherFactory$1
  org.apache.cassandra.security.CipherFactory$2
  private CachedCipher = org.apache.cassandra.security.CipherFactory$CachedCipher of org.apache.cassandra.security.CipherFactory