com.ibm.commerce.security.commands
Class GeneratePasswordCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.security.commands.GeneratePasswordCmdImpl
- All Implemented Interfaces:
- ECCommand, ECTargetableCommand, GeneratePasswordCmd, TaskCommand
- public class GeneratePasswordCmdImpl
- extends TaskCommandImpl
- implements GeneratePasswordCmd
This task command will randomly generated a password of a specified length.
Before executing this task command the following set should be performed:
setPasswordLength
Upon execution of this command the method getPassword should be called to retrieve the randomly generated password. Error View Task: GeneratePasswordErrorView
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ERRTASK_NAME
Error task name. |
Method Summary |
java.lang.String |
getPassword()
Retrieve the Password that was generated. |
void |
performExecute()
Generates a new random password of the specified length. |
void |
setPasswordLength(int nPasswordLength)
Sets the length of the password that should be generated. |
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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
- Error task name.
- See Also:
- Constant Field Values
GeneratePasswordCmdImpl
public GeneratePasswordCmdImpl()
getPassword
public java.lang.String getPassword()
- Retrieve the Password that was generated.
-
- Specified by:
- getPassword in interface GeneratePasswordCmd
-
- Returns:
- The Password.
performExecute
public void performExecute()
throws ECException
- Generates a new random password of the specified length.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
setPasswordLength
public void setPasswordLength(int nPasswordLength)
- Sets the length of the password that should be generated.
-
- Specified by:
- setPasswordLength in interface GeneratePasswordCmd
-
- Parameters:
- nPasswordLength - The length of the Passwod.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.