org.springframework.security.access.expression
Interface SecurityExpressionOperations

All Known Subinterfaces:
MethodSecurityExpressionOperations
All Known Implementing Classes:
SecurityExpressionRoot, WebSecurityExpressionRoot

public interface SecurityExpressionOperations

Standard interface for expression root objects used with expression-based security.

Since:
3.1.1

Method Summary
 boolean denyAll()
           
 Authentication getAuthentication()
           
 boolean hasAnyAuthority(String... authorities)
           
 boolean hasAnyRole(String... roles)
           
 boolean hasAuthority(String authority)
           
 boolean hasPermission(Object target, Object permission)
           
 boolean hasPermission(Object targetId, String targetType, Object permission)
           
 boolean hasRole(String role)
           
 boolean isAnonymous()
           
 boolean isAuthenticated()
           
 boolean isFullyAuthenticated()
           
 boolean isRememberMe()
           
 boolean permitAll()
           
 

Method Detail

getAuthentication

Authentication getAuthentication()

hasAuthority

boolean hasAuthority(String authority)

hasAnyAuthority

boolean hasAnyAuthority(String... authorities)

hasRole

boolean hasRole(String role)

hasAnyRole

boolean hasAnyRole(String... roles)

permitAll

boolean permitAll()

denyAll

boolean denyAll()

isAnonymous

boolean isAnonymous()

isAuthenticated

boolean isAuthenticated()

isRememberMe

boolean isRememberMe()

isFullyAuthenticated

boolean isFullyAuthenticated()

hasPermission

boolean hasPermission(Object target,
                      Object permission)

hasPermission

boolean hasPermission(Object targetId,
                      String targetType,
                      Object permission)