Class ApiMethodSecurityExpressionHandler

  • All Implemented Interfaces:
    org.springframework.aop.framework.AopInfrastructureBean, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.security.access.expression.method.MethodSecurityExpressionHandler, org.springframework.security.access.expression.SecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>

    public class ApiMethodSecurityExpressionHandler
    extends org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
    The ApiMethodSecurityExpressionHandler class.
    Author:
    Marcus Portmann
    • Field Summary

      • Fields inherited from class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiMethodSecurityExpressionHandler​(org.springframework.context.ApplicationContext applicationContext)
      Constructs a new ApiMethodSecurityExpressionHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.security.access.expression.method.MethodSecurityExpressionOperations createSecurityExpressionRoot​(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation)
      Creates the root object for expression evaluation.
      • Methods inherited from class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler

        createEvaluationContextInternal, filter, getDefaultRolePrefix, getParameterNameDiscoverer, getTrustResolver, setDefaultRolePrefix, setParameterNameDiscoverer, setPermissionCacheOptimizer, setReturnObject, setTrustResolver
      • Methods inherited from class org.springframework.security.access.expression.AbstractSecurityExpressionHandler

        createEvaluationContext, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy
      • Methods inherited from interface org.springframework.security.access.expression.SecurityExpressionHandler

        createEvaluationContext, getExpressionParser
    • Constructor Detail

      • ApiMethodSecurityExpressionHandler

        public ApiMethodSecurityExpressionHandler​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new ApiMethodSecurityExpressionHandler.
        Parameters:
        applicationContext - the Spring application context
    • Method Detail

      • createSecurityExpressionRoot

        protected org.springframework.security.access.expression.method.MethodSecurityExpressionOperations createSecurityExpressionRoot​(org.springframework.security.core.Authentication authentication,
                                                                                                                                        org.aopalliance.intercept.MethodInvocation invocation)
        Creates the root object for expression evaluation.
        Overrides:
        createSecurityExpressionRoot in class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
        Parameters:
        authentication - the authentication
        invocation - the invocation
        Returns:
        the root object for expression evaluation