|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
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()
isAnonymous
in interface SecurityContext
SecurityContext.isAnonymous()
public final String getUserName()
getUserName
in interface SecurityContext
SecurityContext.getUserName()
public final boolean hasRole(String roleName)
hasRole
in interface SecurityContext
roleName
- the name of the role to check
SecurityContext.hasRole(String)
public void logout()
For some authentication mechanisms, this will be implemented as a no-op.
logout
in interface SecurityContext
SecurityContext.logout()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |