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 ofSecurityExpressionHandler
which uses aMessageSecurityExpressionRoot
.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageSecurityExpressionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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 wh
-
setTrustResolver
public void setTrustResolver(AuthenticationTrustResolver trustResolver)
-
-