|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote Interface for the UserManager session bean. This is the synchronization point between user profile support and the weblogic security realm. Any user management operations should be done here, rather than through the realm directly. This class depends on the following environment variables in the calling UserManager's environment context:
Method Summary | |
void |
authenticate(java.lang.String username,
java.lang.String password)
Throws an AuthenticationException if the user is not a
valid user or credentials are invalid. |
ProfileWrapper |
createUser(java.lang.String username,
java.lang.String password)
Creates a user with the given username and password. |
ProfileWrapper |
createUser(java.lang.String username,
java.lang.String password,
java.lang.String profileType)
Creates a user with a specific profile type. |
java.lang.String[] |
getProfileTypeNames()
Return a list of profile type names that are registered with the UserManager. |
java.util.List |
getUserNames(java.lang.String searchExpression,
int limit)
Returns a List of users' names matching the search expression |
ProfileWrapper |
getUserProfile(java.lang.String username)
|
ProfileManager |
getUserProfileManager(java.lang.String username)
Returns the appropriate ProfileManager deployment for this user, based on the user's profile type. |
void |
removeUser(java.lang.String username)
Removes a user from the system. |
void |
setPassword(java.lang.String username,
java.lang.String password)
Sets the password for a user in the realm. |
boolean |
userExists(java.lang.String username)
Determines if a user exists. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public void authenticate(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, AuthenticationException
AuthenticationException
if the user is not a
valid user or credentials are invalid. This method is only used to
verify a username and password, it does not do anything to set the user
as the "current" system user.
username
- the username for the userpassword
- the password for the userpublic ProfileWrapper getUserProfile(java.lang.String username) throws java.rmi.RemoteException
username
- the username for the userpublic ProfileManager getUserProfileManager(java.lang.String username) throws java.rmi.RemoteException
username
- the username for the userpublic boolean userExists(java.lang.String username) throws java.rmi.RemoteException
username
- the user to look forpublic ProfileWrapper createUser(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, UserAlreadyExistsException, InvalidUsernameException, InvalidPasswordException
username
- the username for the new userpassword
- the password for the new userpublic ProfileWrapper createUser(java.lang.String username, java.lang.String password, java.lang.String profileType) throws java.rmi.RemoteException, UserAlreadyExistsException, InvalidUsernameException, InvalidPasswordException
username
- the username for the new userpassword
- the password for the new userprofileType
- the name of the profile type for the new userpublic void setPassword(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, InvalidPasswordException
username
- the username of the userpassword
- the new password for the userpublic void removeUser(java.lang.String username) throws java.rmi.RemoteException, InvalidUsernameException
username
- the username of the user to removepublic java.util.List getUserNames(java.lang.String searchExpression, int limit) throws java.rmi.RemoteException
searchExpression
- a wildcard search expressionlimit
- a limit of results to returnpublic java.lang.String[] getProfileTypeNames() throws java.rmi.RemoteException
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |