com.ibm.commerce.negotiation.commands
Class DataCryptCmdImpl

com.ibm.commerce.negotiation.commands.DataCryptCmdImpl
All Implemented Interfaces:
DataCryptCmd, ECCommand

public class DataCryptCmdImpl
implements DataCryptCmd

Encrypts/decrypts a value using the specified key.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.DataCryptCmd
defaultCommandClassName, NAME
 
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 interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
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.
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
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