Class MessageSecurityExpressionRoot
- java.lang.Object
-
- org.springframework.security.access.expression.SecurityExpressionRoot
-
- org.springframework.security.messaging.access.expression.MessageSecurityExpressionRoot
-
- All Implemented Interfaces:
SecurityExpressionOperations
public class MessageSecurityExpressionRoot extends SecurityExpressionRoot
TheSecurityExpressionRoot
used forMessage
expressions.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description MessageSecurityExpressionRoot(java.util.function.Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message)
MessageSecurityExpressionRoot(Authentication authentication, org.springframework.messaging.Message<?> message)
-
Method Summary
-
Methods inherited from class org.springframework.security.access.expression.SecurityExpressionRoot
denyAll, getAuthentication, getPrincipal, hasAnyAuthority, hasAnyRole, hasAuthority, hasPermission, hasPermission, hasRole, isAnonymous, isAuthenticated, isFullyAuthenticated, isRememberMe, permitAll, setDefaultRolePrefix, setPermissionEvaluator, setRoleHierarchy, setTrustResolver
-
-
-
-
Constructor Detail
-
MessageSecurityExpressionRoot
public MessageSecurityExpressionRoot(Authentication authentication, org.springframework.messaging.Message<?> message)
-
MessageSecurityExpressionRoot
public MessageSecurityExpressionRoot(java.util.function.Supplier<Authentication> authentication, org.springframework.messaging.Message<?> message)
- Parameters:
authentication
- theSupplier
of theAuthentication
to usemessage
- theMessage
to use- Since:
- 5.8
-
-