com.ibm.commerce.negotiation.commands
Class DataCryptCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.DataCryptCmdImpl
All Implemented Interfaces:
DataCryptCmd, ECCommand, ECTargetableCommand, TaskCommand

public class DataCryptCmdImpl
extends TaskCommandImpl
implements DataCryptCmd

Encrypts/decrypts a value using the specified key.

See Also:
Serialized Form

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
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

DataCryptCmdImpl

public DataCryptCmdImpl()
DataCryptCmdImpl default constructor.
Method Detail

getValue

public java.lang.String getValue()
Returns the encrypted/decrypted value
Specified by:
getValue in interface DataCryptCmd
Returns:
String - The encryption/decryption value

isReadyToCallExecute

public boolean isReadyToCallExecute()
Verifies that the this command is ready to be executed.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
boolean =true if command is ready, otherwise false.

performExecute

public void performExecute()
                    throws ECException
Performs data encryption/ decryption task. future retrieval.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - -

setErrorTaskName

public void setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions.
Specified by:
setErrorTaskName in interface DataCryptCmd
Parameters:
errorTaskName - java.lang.String

setKey

public void setKey(java.lang.String key)
Sets the key to be used for encrypting/decrypting the value.
Specified by:
setKey in interface DataCryptCmd
Parameters:
key - java.lang.String

setMode

public void setMode(java.lang.String mode)
Sets the mode for either encryption or decryption.
Specified by:
setMode in interface DataCryptCmd
Parameters:
mode - String - Encrypt or decrypt.

setValue

public void setValue(java.lang.String value)
Sets the value to be encrypted/decrypted.
Specified by:
setValue in interface DataCryptCmd
Parameters:
value - java.lang.String