|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserIdentityService
UserIdentityService provides services for managing a user
identity, which is the principal used for authentication.
| 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. |
| Method Detail |
|---|
void add(java.lang.String userId,
java.lang.String password)
throws UserIdExistException,
IdentityServiceException
userId - - 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
void changePassword(java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword)
throws UserIdNonExistException,
IdentityServiceException
userId - - 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
boolean exists(java.lang.String userId)
throws IdentityServiceException
userId - - the ID of the user identity to check
IdentityServiceException - - A problem occured servicing the add request
void remove(java.lang.String userId)
throws UserIdNonExistException,
IdentityServiceException
userId - - the ID of the user identity to remove
UserIdNonExistException - - The user does not exist
IdentityServiceException - - A problem occured servicing the add request
void setPassword(java.lang.String userId,
java.lang.String password)
throws UserIdNonExistException,
IdentityServiceException
userId - - 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 | ||||||||