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, org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.messaging.Message<T>>

public class DefaultMessageSecurityExpressionHandler<T> extends org.springframework.security.access.expression.AbstractSecurityExpressionHandler<org.springframework.messaging.Message<T>>
The default implementation of SecurityExpressionHandler which uses a MessageSecurityExpressionRoot.
Since:
4.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.expression.EvaluationContext
    createEvaluationContext(Supplier<org.springframework.security.core.Authentication> authentication, org.springframework.messaging.Message<T> message)
     
    protected org.springframework.security.access.expression.SecurityExpressionOperations
    createSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, org.springframework.messaging.Message<T> invocation)
     
    void
    setTrustResolver(org.springframework.security.authentication.AuthenticationTrustResolver trustResolver)
     

    Methods inherited from class org.springframework.security.access.expression.AbstractSecurityExpressionHandler

    createEvaluationContext, createEvaluationContextInternal, getBeanResolver, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultMessageSecurityExpressionHandler

      public DefaultMessageSecurityExpressionHandler()
  • Method Details

    • createEvaluationContext

      public org.springframework.expression.EvaluationContext createEvaluationContext(Supplier<org.springframework.security.core.Authentication> authentication, org.springframework.messaging.Message<T> message)
    • createSecurityExpressionRoot

      protected org.springframework.security.access.expression.SecurityExpressionOperations createSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, org.springframework.messaging.Message<T> invocation)
      Specified by:
      createSecurityExpressionRoot in class org.springframework.security.access.expression.AbstractSecurityExpressionHandler<org.springframework.messaging.Message<T>>
    • setTrustResolver

      public void setTrustResolver(org.springframework.security.authentication.AuthenticationTrustResolver trustResolver)