|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserService
| Method Summary | |
|---|---|
boolean |
authenticate(String username,
String password)
Given a usernamen & password, this method checks, whether or not the provided user can be authenticated |
String |
getAuthenticatedUsername(javax.servlet.http.HttpServletRequest request)
Returns the username of the currently logged in user or null if no user can be found. |
String |
getRemoteUsername()
Deprecated. use getAuthenticatedUsername(javax.servlet.http.HttpServletRequest) |
boolean |
isSystemAdmin(String username)
Returns true or false depending on if a user has been granted the system admin permission within Crowd. |
boolean |
isUserInGroup(String username,
String group)
Returns whether the user is in the specify group |
Principal |
resolve(String username)
Returns the user that made this request or null if this application does not have such a user. |
| Method Detail |
|---|
@Deprecated String getRemoteUsername()
getAuthenticatedUsername(javax.servlet.http.HttpServletRequest)
String getAuthenticatedUsername(javax.servlet.http.HttpServletRequest request)
request - The request to retrieve the username from
boolean isUserInGroup(String username,
String group)
username - The username to checkgroup - The group to check
boolean isSystemAdmin(String username)
throws org.springframework.dao.DataAccessException
username - The username of the user to check
org.springframework.dao.DataAccessException - if there was an error retrieving the username
boolean authenticate(String username,
String password)
username - Username of the userpassword - Password of the user
Principal resolve(String username)
throws org.springframework.dao.DataAccessException
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
org.springframework.dao.DataAccessException - if there was an error retrieving the username
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||