public interface

MethodSecurityExpressionHandler

implements SecurityExpressionHandler<T>
org.springframework.security.access.expression.method.MethodSecurityExpressionHandler
Known Indirect Subclasses

Class Overview

Extended expression-handler facade which adds methods which are specific to securing method invocations.

Summary

Public Methods
abstract Object filter(Object filterTarget, Expression filterExpression, EvaluationContext ctx)
Filters a target collection or array.
abstract void setReturnObject(Object returnObject, EvaluationContext ctx)
Used to inform the expression system of the return object for the given evaluation context.
[Expand]
Inherited Methods
From interface org.springframework.security.access.expression.SecurityExpressionHandler

Public Methods

public abstract Object filter (Object filterTarget, Expression filterExpression, EvaluationContext ctx)

Filters a target collection or array. Only applies to method invocations.

Parameters
filterTarget the array or collection to be filtered.
filterExpression the expression which should be used as the filter condition. If it returns false on evaluation, the object will be removed from the returned collection
ctx the current evaluation context (as created through a call to createEvaluationContext(org.springframework.security.core.Authentication, Object)
Returns
  • the filtered collection or array

public abstract void setReturnObject (Object returnObject, EvaluationContext ctx)

Used to inform the expression system of the return object for the given evaluation context. Only applies to method invocations.

Parameters
returnObject the return object value
ctx the context within which the object should be set (as created through a call to createEvaluationContext(org.springframework.security.core.Authentication, Object)