Package org.apache.cassandra.security
Class EncryptionContext
java.lang.Object
org.apache.cassandra.security.EncryptionContext
A (largely) immutable wrapper for the application-wide file-level encryption settings.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEncryptionContext(TransparentDataEncryptionOptions tdeOptions) EncryptionContext(TransparentDataEncryptionOptions tdeOptions, byte[] iv, boolean init) -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionContextcreateFromMap(Map<?, ?> parameters, EncryptionContext encryptionContext) If encryption headers are found in theparameters, those headers are merged with the application-wideencryptionContext.booleanbooleanequals(EncryptionContext other) intbyte[]getIV()boolean
-
Field Details
-
ENCRYPTION_CIPHER
- See Also:
-
ENCRYPTION_KEY_ALIAS
- See Also:
-
ENCRYPTION_IV
- See Also:
-
-
Constructor Details
-
EncryptionContext
public EncryptionContext() -
EncryptionContext
-
EncryptionContext
-
-
Method Details
-
getCompressor
-
getEncryptor
- Throws:
IOException
-
getDecryptor
- Throws:
IOException
-
isEnabled
public boolean isEnabled() -
getChunkLength
public int getChunkLength() -
getIV
public byte[] getIV() -
getTransparentDataEncryptionOptions
-
equals
-
equals
-
toHeaderParameters
-
createFromMap
public static EncryptionContext createFromMap(Map<?, ?> parameters, EncryptionContext encryptionContext) If encryption headers are found in theparameters, those headers are merged with the application-wideencryptionContext.
-