|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--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
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands.LDAPAuthenticationCmd |
COPYRIGHT, defaultCommandClassName, NAME |
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()
Contains the actual business logic of the command It should be implemented by all the command writer. |
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()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Field Detail |
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
public LDAPAuthenticationCmdImpl()
Method Detail |
public java.lang.String getAuthenticateUserId()
getAuthenticateUserId
in interface LDAPAuthenticationCmd
protected byte[] getEncryptPassword()
protected java.lang.String getLogonId()
protected java.lang.String getPassword()
public TypedProperty getRequestProperties() throws ECException
public boolean isLogonIdValid()
isLogonIdValid
in interface LDAPAuthenticationCmd
public boolean isUpdatePending()
public boolean isValidCredentials()
isValidCredentials
in interface LDAPAuthenticationCmd
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.protected void setAuthenticateUserId(java.lang.String astrAuthenticateUserId)
public void setLogonId(java.lang.String strLogonId)
setLogonId
in interface LDAPAuthenticationCmd
strLogonID
- The login ID.public void setPassword(java.lang.String strPassword)
setPassword
in interface LDAPAuthenticationCmd
strPassword
- The password.public void setUpdateFlag()
setUpdateFlag
in interface LDAPAuthenticationCmd
public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |