|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecurityContext

This interface is easily adaptable to, but not dependent on, the graph layer SecurityContext interface. This removes
the dependency between implementing classes and the modeshape-graph module.
This class is not thread-safe.
| Method Summary | |
|---|---|
String |
getUserName()
Returns the authenticated user's name |
boolean |
hasRole(String roleName)
Returns whether the authenticated user has the given role. |
void |
logout()
Logs the user out of the authentication mechanism. |
| Method Detail |
|---|
String getUserName()
boolean hasRole(String roleName)
roleName - the name of the role to check
void logout()
For some authentication mechanisms, this will be implemented as a no-op.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||