public class EncryptionContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCRYPTION_CIPHER |
static java.lang.String |
ENCRYPTION_IV |
static java.lang.String |
ENCRYPTION_KEY_ALIAS |
Constructor and Description |
---|
EncryptionContext() |
EncryptionContext(TransparentDataEncryptionOptions tdeOptions) |
EncryptionContext(TransparentDataEncryptionOptions tdeOptions,
byte[] iv,
boolean init) |
Modifier and Type | Method and Description |
---|---|
static EncryptionContext |
createFromMap(java.util.Map<?,?> parameters,
EncryptionContext encryptionContext)
If encryption headers are found in the
parameters ,
those headers are merged with the application-wide encryptionContext . |
boolean |
equals(EncryptionContext other) |
boolean |
equals(java.lang.Object o) |
int |
getChunkLength() |
ICompressor |
getCompressor() |
javax.crypto.Cipher |
getDecryptor() |
javax.crypto.Cipher |
getEncryptor() |
byte[] |
getIV() |
TransparentDataEncryptionOptions |
getTransparentDataEncryptionOptions() |
boolean |
isEnabled() |
java.util.Map<java.lang.String,java.lang.String> |
toHeaderParameters() |
public static final java.lang.String ENCRYPTION_CIPHER
public static final java.lang.String ENCRYPTION_KEY_ALIAS
public static final java.lang.String ENCRYPTION_IV
public EncryptionContext()
public EncryptionContext(TransparentDataEncryptionOptions tdeOptions)
public EncryptionContext(TransparentDataEncryptionOptions tdeOptions, byte[] iv, boolean init)
public ICompressor getCompressor()
public javax.crypto.Cipher getEncryptor() throws java.io.IOException
java.io.IOException
public javax.crypto.Cipher getDecryptor() throws java.io.IOException
java.io.IOException
public boolean isEnabled()
public int getChunkLength()
public byte[] getIV()
public TransparentDataEncryptionOptions getTransparentDataEncryptionOptions()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(EncryptionContext other)
public java.util.Map<java.lang.String,java.lang.String> toHeaderParameters()
public static EncryptionContext createFromMap(java.util.Map<?,?> parameters, EncryptionContext encryptionContext)
parameters
,
those headers are merged with the application-wide encryptionContext
.Copyright © 2009- The Apache Software Foundation