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
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)