I - the type parameter for the inputO - the type parameter for the outputpublic interface CipherExecutor<I,O>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CONTENT_ENCRYPTION_ALGORITHM
The default content encryption algorithm.
|
static org.slf4j.Logger |
LOGGER |
| Modifier and Type | Method and Description |
|---|---|
default O |
decode(I value)
Decode the value.
|
O |
decode(I value,
java.lang.Object[] parameters)
Decode the value.
|
default java.util.Map<java.lang.String,java.lang.Object> |
decode(java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.Object[] parameters)
Decode map.
|
default O |
encode(I value)
Encrypt the value.
|
O |
encode(I value,
java.lang.Object[] parameters)
Encrypt the value.
|
default java.lang.String |
getName()
The (component) name of this cipher.
|
default boolean |
isEnabled()
Supports encryption of values.
|
static CipherExecutor<java.io.Serializable,java.io.Serializable> |
noOp()
Factory method.
|
static CipherExecutor<java.io.Serializable,java.lang.String> |
noOpOfSerializableToString()
Factory method.
|
static CipherExecutor<java.lang.String,java.lang.String> |
noOpOfStringToString()
Factory method.
|
static final org.slf4j.Logger LOGGER
static final java.lang.String DEFAULT_CONTENT_ENCRYPTION_ALGORITHM
O encode(I value, java.lang.Object[] parameters)
value - the valueparameters - the parametersdefault O encode(I value)
value - the valueO decode(I value, java.lang.Object[] parameters)
value - encrypted valueparameters - the parametersdefault O decode(I value)
value - the valuedefault java.util.Map<java.lang.String,java.lang.Object> decode(java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.Object[] parameters)
properties - the propertiesparameters - the parametersdefault boolean isEnabled()
default java.lang.String getName()
static CipherExecutor<java.io.Serializable,java.io.Serializable> noOp()
CipherExecutor Serializable -> Serializablestatic CipherExecutor<java.lang.String,java.lang.String> noOpOfStringToString()
CipherExecutor String -> Stringstatic CipherExecutor<java.io.Serializable,java.lang.String> noOpOfSerializableToString()
CipherExecutor Serializable -> String