|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.auth.impl.EpUserIdentityService
public class EpUserIdentityService
This is a default indentity service for EP authentication. As Customer will set/update
password through Hibernate automatically, so this implementation of UserIdentityService
is empty.
| Constructor Summary | |
|---|---|
EpUserIdentityService()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.String userId,
java.lang.String password)
Create a new user identity. |
void |
changePassword(java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword)
Secure method for changing the password, checks authentication first. |
boolean |
exists(java.lang.String userId)
Check whether the given user exists. |
void |
remove(java.lang.String userId)
Remove a user identity. |
void |
setPassword(java.lang.String userId,
java.lang.String password)
Change the password without requiring authentication, for use by administrators. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EpUserIdentityService()
| Method Detail |
|---|
public void add(java.lang.String userId,
java.lang.String password)
throws UserIdExistException,
IdentityServiceException
add in interface UserIdentityServiceuserId - - the ID of the user identity to createpassword - - the password to associate with the user identity
UserIdExistException - - The userId already exists
IdentityServiceException - - A problem occured servicing the add request
public void changePassword(java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword)
throws UserIdNonExistException,
IdentityServiceException
changePassword in interface UserIdentityServiceuserId - - the ID of the user identity to change the password ofoldPassword - - the old password for authentication purposesnewPassword - - the new password to set
UserIdNonExistException - - The user does not exist
IdentityServiceException - - A problem occured servicing the add request
public boolean exists(java.lang.String userId)
throws IdentityServiceException
exists in interface UserIdentityServiceuserId - - the ID of the user identity to check
IdentityServiceException - - A problem occured servicing the add request
public void remove(java.lang.String userId)
throws UserIdNonExistException,
IdentityServiceException
remove in interface UserIdentityServiceuserId - - the ID of the user identity to remove
UserIdNonExistException - - The user does not exist
IdentityServiceException - - A problem occured servicing the add request
public void setPassword(java.lang.String userId,
java.lang.String password)
throws UserIdNonExistException,
IdentityServiceException
setPassword in interface UserIdentityServiceuserId - - the ID of the user identity to set the password ofpassword - - the password to set
UserIdNonExistException - - The user does not exist
IdentityServiceException - - A problem occured servicing the add request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||