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