Class DefaultMessageSecurityExpressionHandler<T>
java.lang.Object
org.springframework.security.access.expression.AbstractSecurityExpressionHandler<org.springframework.messaging.Message<T>>
org.springframework.security.messaging.access.expression.DefaultMessageSecurityExpressionHandler<T>
- Type Parameters:
T
- the type for the body of the Message
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,SecurityExpressionHandler<org.springframework.messaging.Message<T>>
public class DefaultMessageSecurityExpressionHandler<T>
extends AbstractSecurityExpressionHandler<org.springframework.messaging.Message<T>>
The default implementation of
SecurityExpressionHandler
which uses a
MessageSecurityExpressionRoot
.- Since:
- 4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SecurityExpressionOperations
createSecurityExpressionRoot
(Authentication authentication, org.springframework.messaging.Message<T> invocation) Implement in order to create a root object of the correct type for the supported invocation type.void
setTrustResolver
(AuthenticationTrustResolver trustResolver) Methods inherited from class org.springframework.security.access.expression.AbstractSecurityExpressionHandler
createEvaluationContext, createEvaluationContextInternal, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy
-
Constructor Details
-
DefaultMessageSecurityExpressionHandler
public DefaultMessageSecurityExpressionHandler()
-
-
Method Details
-
createSecurityExpressionRoot
protected SecurityExpressionOperations createSecurityExpressionRoot(Authentication authentication, org.springframework.messaging.Message<T> invocation) Description copied from class:AbstractSecurityExpressionHandler
Implement in order to create a root object of the correct type for the supported invocation type.- Specified by:
createSecurityExpressionRoot
in classAbstractSecurityExpressionHandler<org.springframework.messaging.Message<T>>
- Parameters:
authentication
- the current authentication objectinvocation
- the invocation (filter, method, channel)- Returns:
- the object
-
setTrustResolver
-