java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.negotiation.commands.DataCryptCmdImpl
Encrypts/decrypts a value using the specified key.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands. DataCryptCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
DataCryptCmdImpl() DataCryptCmdImpl default constructor. |
Method Summary | |
---|---|
java.lang.String |
getValue() Returns the encrypted/decrypted value |
boolean |
isReadyToCallExecute() Verifies that the this command is ready to be executed. |
void |
performExecute() Performs data encryption/ decryption task. |
void |
setErrorTaskName(java.lang.String errorTaskName) Set error task name that will be returned by the exceptions. |
void |
setKey(java.lang.String key) Sets the key to be used for encrypting/decrypting the value. |
void |
setMode(java.lang.String mode) Sets the mode for either encryption or decryption. |
void |
setValue(java.lang.String value) Sets the value to be encrypted/decrypted. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public DataCryptCmdImpl()
Method Detail |
---|
public java.lang.String getValue()
getValue
in interface
DataCryptCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- -public void setErrorTaskName(java.lang.String errorTaskName)
setErrorTaskName
in interface
DataCryptCmd
errorTaskName
- java.lang.Stringpublic void setKey(java.lang.String key)
setKey
in interface
DataCryptCmd
key
- java.lang.Stringpublic void setMode(java.lang.String mode)
setMode
in interface
DataCryptCmd
mode
- String - Encrypt or decrypt.public void setValue(java.lang.String value)
setValue
in interface
DataCryptCmd
value
- java.lang.String