|
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.AnonymousProvider.AnonymousSecurityContext
protected final class AnonymousProvider.AnonymousSecurityContext
Constructor Summary | |
---|---|
protected |
AnonymousProvider.AnonymousSecurityContext(Set<String> userRoles,
String anonymousUsername)
|
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 AnonymousProvider.AnonymousSecurityContext(Set<String> userRoles, String anonymousUsername)
Method Detail |
---|
public boolean isAnonymous()
SecurityContext
isAnonymous
in interface SecurityContext
public String getUserName()
SecurityContext
getUserName
in interface SecurityContext
public 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.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |