org.springframework.security.access.expression
Class SecurityExpressionRoot
java.lang.Object
org.springframework.security.access.expression.SecurityExpressionRoot
- Direct Known Subclasses:
- WebSecurityExpressionRoot
public abstract class SecurityExpressionRoot
- extends Object
Base root object for use in Spring Security expression evaluations.
- Since:
- 3.0
- Version:
- $Id: SecurityExpressionRoot.java 3925 2009-10-05 19:28:53Z ltaylor $
- Author:
- Luke Taylor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
authentication
protected final Authentication authentication
permitAll
public final boolean permitAll
- Allows "permitAll" expression
- See Also:
- Constant Field Values
denyAll
public final boolean denyAll
- Allows "denyAll" expression
- See Also:
- Constant Field Values
SecurityExpressionRoot
public SecurityExpressionRoot(Authentication a)
hasRole
public final boolean hasRole(String role)
hasAnyRole
public final boolean hasAnyRole(String... roles)
getAuthentication
public final Authentication getAuthentication()
permitAll
public final boolean permitAll()
denyAll
public final boolean denyAll()
isAnonymous
public final boolean isAnonymous()
isAuthenticated
public final boolean isAuthenticated()
isRememberMe
public final boolean isRememberMe()
isFullyAuthenticated
public final boolean isFullyAuthenticated()
getPrincipal
public Object getPrincipal()
setTrustResolver
public void setTrustResolver(AuthenticationTrustResolver trustResolver)
setRoleHierarchy
public void setRoleHierarchy(RoleHierarchy roleHierarchy)
Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.