|
ModeShape Distribution 3.6.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.security.ServletProvider.ServletSecurityContext
protected static class ServletProvider.ServletSecurityContext
Constructor Summary | |
---|---|
protected |
ServletProvider.ServletSecurityContext(HttpServletRequest request)
|
Method Summary | |
---|---|
String |
getUserName()
Returns the authenticated user's name |
boolean |
hasRole(String roleName)
Returns whether the authenticated user has the given role. |
boolean |
isAnonymous()
Return whether this security context is an anonymous context. |
void |
logout()
Logs the user out of the authentication mechanism. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ServletProvider.ServletSecurityContext(HttpServletRequest request)
Method Detail |
---|
public boolean isAnonymous()
SecurityContext
isAnonymous
in interface SecurityContext
public final String getUserName()
SecurityContext
getUserName
in interface SecurityContext
public final boolean hasRole(String roleName)
SecurityContext
hasRole
in interface SecurityContext
roleName
- the name of the role to check
public void logout()
SecurityContext
For some authentication mechanisms, this will be implemented as a no-op.
logout
in interface SecurityContext
|
ModeShape Distribution 3.6.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |