Class PostInvocationAdviceProvider
- java.lang.Object
-
- org.springframework.security.access.prepost.PostInvocationAdviceProvider
-
- All Implemented Interfaces:
AfterInvocationProvider
@Deprecated public class PostInvocationAdviceProvider extends java.lang.Object implements AfterInvocationProvider
Deprecated.UseAuthorizationManagerAfterMethodInterceptor
insteadAfterInvocationProvider which delegates to aPostInvocationAuthorizationAdvice
instance passing it the PostInvocationAttribute created from @PostAuthorize and @PostFilter annotations.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Log
logger
Deprecated.
-
Constructor Summary
Constructors Constructor Description PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
decide(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> config, java.lang.Object returnedObject)
Deprecated.boolean
supports(java.lang.Class<?> clazz)
Deprecated.Indicates whether theAfterInvocationProvider
is able to provide "after invocation" processing for the indicated secured object type.boolean
supports(ConfigAttribute attribute)
Deprecated.Indicates whether thisAfterInvocationProvider
is able to participate in a decision involving the passedConfigAttribute
.
-
-
-
Constructor Detail
-
PostInvocationAdviceProvider
public PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice)
Deprecated.
-
-
Method Detail
-
decide
public java.lang.Object decide(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> config, java.lang.Object returnedObject) throws AccessDeniedException
Deprecated.- Specified by:
decide
in interfaceAfterInvocationProvider
- Throws:
AccessDeniedException
-
supports
public boolean supports(ConfigAttribute attribute)
Deprecated.Description copied from interface:AfterInvocationProvider
Indicates whether thisAfterInvocationProvider
is able to participate in a decision involving the passedConfigAttribute
.This allows the
AbstractSecurityInterceptor
to check every configuration attribute can be consumed by the configuredAccessDecisionManager
and/orRunAsManager
and/orAccessDecisionManager
.- Specified by:
supports
in interfaceAfterInvocationProvider
- Parameters:
attribute
- a configuration attribute that has been configured against theAbstractSecurityInterceptor
- Returns:
- true if this
AfterInvocationProvider
can support the passed configuration attribute
-
supports
public boolean supports(java.lang.Class<?> clazz)
Deprecated.Description copied from interface:AfterInvocationProvider
Indicates whether theAfterInvocationProvider
is able to provide "after invocation" processing for the indicated secured object type.- Specified by:
supports
in interfaceAfterInvocationProvider
- Parameters:
clazz
- the class of secure object that is being queried- Returns:
- true if the implementation can process the indicated class
-
-