Class MessageSecurityExpressionRoot

java.lang.Object
org.springframework.security.access.expression.SecurityExpressionRoot
org.springframework.security.messaging.access.expression.MessageSecurityExpressionRoot
All Implemented Interfaces:
org.springframework.security.access.expression.SecurityExpressionOperations

public class MessageSecurityExpressionRoot extends org.springframework.security.access.expression.SecurityExpressionRoot
The SecurityExpressionRoot used for Message expressions.
Since:
4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.springframework.messaging.Message<?>
     

    Fields inherited from class org.springframework.security.access.expression.SecurityExpressionRoot

    admin, create, delete, denyAll, permitAll, read, write
  • Constructor Summary

    Constructors
    Constructor
    Description
    MessageSecurityExpressionRoot(Supplier<org.springframework.security.core.Authentication> authentication, org.springframework.messaging.Message<?> message)
    Creates an instance for the given Supplier of the Authentication and Message.
    MessageSecurityExpressionRoot(org.springframework.security.core.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

    Methods inherited from class java.lang.Object

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

    • message

      public final org.springframework.messaging.Message<?> message
  • Constructor Details

    • MessageSecurityExpressionRoot

      public MessageSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, org.springframework.messaging.Message<?> message)
    • MessageSecurityExpressionRoot

      public MessageSecurityExpressionRoot(Supplier<org.springframework.security.core.Authentication> authentication, org.springframework.messaging.Message<?> message)
      Creates an instance for the given Supplier of the Authentication and Message.
      Parameters:
      authentication - the Supplier of the Authentication to use
      message - the Message to use
      Since:
      5.8