public static class BypassSecurityServletAuthenticationProvider.AnonymousAdminSecurityContext extends Object implements org.modeshape.jcr.security.SecurityContext
Constructor and Description |
---|
AnonymousAdminSecurityContext(String userName)
Create a new security context with the given user name
|
Modifier and Type | Method and Description |
---|---|
String |
getUserName() |
boolean |
hasRole(String roleName) |
boolean |
isAnonymous() |
void |
logout() |
public AnonymousAdminSecurityContext(String userName)
userName
- User name to assign to the anonymous adminpublic boolean isAnonymous()
isAnonymous
in interface org.modeshape.jcr.security.SecurityContext
public String getUserName()
getUserName
in interface org.modeshape.jcr.security.SecurityContext
public boolean hasRole(String roleName)
hasRole
in interface org.modeshape.jcr.security.SecurityContext
public void logout()
logout
in interface org.modeshape.jcr.security.SecurityContext
Copyright © 2013–2018 DuraSpace, Inc.. All rights reserved.