|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecurityContext
An interface used by access controllers to query context data to determine access.
| Method Summary | |
|---|---|
HttpServletRequest |
getRequest()
Returns the current servlet request. |
Collection<String> |
getRoles()
Returns all the roles for the currently authenticated user. |
Person |
getUser()
Returns the currently authenticated user. |
boolean |
isAuthenticated()
Queries if the current user is authenticated or anonymous. |
boolean |
isUserInRole(String roleName)
Returns if the user is a member of a particular security role. |
| Method Detail |
|---|
boolean isAuthenticated()
Person getUser()
Collection<String> getRoles()
boolean isUserInRole(String roleName)
roleName - the role name
HttpServletRequest getRequest()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||