java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.security.commands.LDAPAuthenticationCmdImpl
If server is configured to authenticate against LDAP then this task command will be called to perform either authentication or an update.
Before executing this task command the following sets should be performed:
setEnciphereMerchantKey or setMerchantKey setLogonId setPassword
If the setUpdateFlag is called then, then upon execution of this task command, the credentials set are updated in LDAP.
If the setUpdateFlag is not called then, upon execution of this task command, verification of the credentials is performed. To determine whether the authentication was successful a call should be make to isValidCredentials.
Field Summary | |
static java.lang.String | ERRTASK_NAME Error task name. |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands.LDAPAuthenticationCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
LDAPAuthenticationCmdImpl() |
Method Summary | |
java.lang.String | getAuthenticateUserId() Retrieve the logon ID under which the current user wishes to logon. |
protected byte[] | getEncryptPassword() Retrieve the password to be used for authentication with the new logon ID. |
protected java.lang.String | getLogonId() Retrieve the Logon ID under which the current user wishes to logon. |
protected java.lang.String | getPassword() Retrieve the password to be used for authentication with the new logon ID. |
TypedProperty | getRequestProperties() Return the request properties. |
boolean | isLogonIdValid() Gets a boolean result flag will be set to indicate if the logon id supplied was correct. |
boolean | isUpdatePending() Indicates whether the password should be verified against an existing one in the database or if the password should be updated in the database. |
boolean | isValidCredentials() Gets a boolean flag indicating if the authentication was successful. |
void | performExecute() Execute the command. |
protected void | setAuthenticateUserId(java.lang.String astrAuthenticateUserId) Retrieves the logon ID under which the current user wishes to logon. |
void | setLogonId(java.lang.String strLogonId) Sets the logon ID under which the current user wishes to logon. |
void | setPassword(java.lang.String strPassword) Sets the password to be used for authentication with the new logon ID. |
void | setUpdateFlag() Indicates that instead of performing verification of the credentials, the credentials should be set on LDAP. |
void | validateParameters() Validates the parameters. |
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 |
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 ERRTASK_NAME
Constructor Detail |
public LDAPAuthenticationCmdImpl()
Method Detail |
public java.lang.String getAuthenticateUserId()
protected byte[] getEncryptPassword()
protected java.lang.String getLogonId()
protected java.lang.String getPassword()
public TypedProperty getRequestProperties() throws ECException
public boolean isLogonIdValid()
public boolean isUpdatePending()
public boolean isValidCredentials()
public void performExecute() throws ECException
protected void setAuthenticateUserId(java.lang.String astrAuthenticateUserId)
public void setLogonId(java.lang.String strLogonId)
public void setPassword(java.lang.String strPassword)
public void setUpdateFlag()
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.