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