|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManager
Interface providing user based operations across various apps.
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Given a usernamen & password, this method checks, whether or not the provided user can be authenticated |
java.lang.String |
getRemoteUsername()
Returns the username of the currently logged in user or null if no user can be found. |
java.lang.String |
getRemoteUsername(javax.servlet.http.HttpServletRequest request)
Returns the username of the currently logged in user or null if no user can be found. |
boolean |
isSystemAdmin(java.lang.String username)
Returns true or false depending on if a user has been granted the system admin permission. |
boolean |
isUserInGroup(java.lang.String username,
java.lang.String group)
Returns whether the user is in the specify group |
java.security.Principal |
resolve(java.lang.String username)
Returns the user that made this request or null if this application does not have such a user. |
| Method Detail |
|---|
java.lang.String getRemoteUsername()
getRemoteUsername(HttpServletRequest).
java.lang.String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
request - The request to retrieve the username from
boolean isUserInGroup(java.lang.String username,
java.lang.String group)
username - The username to checkgroup - The group to check
boolean isSystemAdmin(java.lang.String username)
username - The username of the user to check
boolean authenticate(java.lang.String username,
java.lang.String password)
username - Username of the userpassword - Password of the user
java.security.Principal resolve(java.lang.String username)
throws UserResolutionException
null if this application does not have such a user.
username - Username of the user a consumer is making a request on behalf of
Principal corresponding to the username, null if the user does not exist
UserResolutionException - thrown if there is a problem resolving the user, such as a failure when accessing
an external user store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||