org.springframework.security.access.prepost
Interface PreInvocationAuthorizationAdvice

All Superinterfaces:
AopInfrastructureBean
All Known Implementing Classes:
ExpressionBasedPreInvocationAdvice

public interface PreInvocationAuthorizationAdvice
extends AopInfrastructureBean

Performs argument filtering and authorization logic before a method is invoked.

Since:
3.0
Version:
$Id: PreInvocationAuthorizationAdvice.java 3800 2009-08-04 00:18:07Z ltaylor $
Author:
Luke Taylor

Method Summary
 boolean before(Authentication authentication, org.aopalliance.intercept.MethodInvocation mi, PreInvocationAttribute preInvocationAttribute)
          The "before" advice which should be executed to perform any filtering necessary and to decide whether the method call is authorised.
 

Method Detail

before

boolean before(Authentication authentication,
               org.aopalliance.intercept.MethodInvocation mi,
               PreInvocationAttribute preInvocationAttribute)
The "before" advice which should be executed to perform any filtering necessary and to decide whether the method call is authorised.

Parameters:
authentication - the information on the principal on whose account the decision should be made
mi - the method invocation being attempted
preInvocationAttribute - the attribute built from the @PreFilter and @PostFilter annotations.
Returns:
true if authorised, false otherwise


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.