public final class

AspectJMethodSecurityInterceptor

extends MethodSecurityInterceptor
java.lang.Object
   ↳ org.springframework.security.access.intercept.AbstractSecurityInterceptor
     ↳ org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor
       ↳ org.springframework.security.access.intercept.aspectj.AspectJMethodSecurityInterceptor

Class Overview

AspectJ JoinPoint security interceptor which wraps the JoinPoint in a MethodInvocation adapter to make it compatible with security infrastructure classes which only support MethodInvocations.

One of the invoke methods should be called from the around() advice in your aspect. Alternatively you can use one of the pre-defined aspects from the aspects module.

Summary

[Expand]
Inherited Fields
From class org.springframework.security.access.intercept.AbstractSecurityInterceptor
Public Constructors
AspectJMethodSecurityInterceptor()
Public Methods
Object invoke(JoinPoint jp)
Method that is suitable for user with @Aspect notation.
Object invoke(JoinPoint jp, AspectJCallback advisorProceed)
Method that is suitable for user with traditional AspectJ-code aspects.
[Expand]
Inherited Methods
From class org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor
From class org.springframework.security.access.intercept.AbstractSecurityInterceptor
From class java.lang.Object
From interface org.aopalliance.intercept.MethodInterceptor
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.ApplicationEventPublisherAware
From interface org.springframework.context.MessageSourceAware

Public Constructors

public AspectJMethodSecurityInterceptor ()

Public Methods

public Object invoke (JoinPoint jp)

Method that is suitable for user with @Aspect notation.

Parameters
jp The AspectJ joint point being invoked which requires a security decision
Returns
  • The returned value from the method invocation
Throws
Throwable if the invocation throws one

public Object invoke (JoinPoint jp, AspectJCallback advisorProceed)

Method that is suitable for user with traditional AspectJ-code aspects.

Parameters
jp The AspectJ joint point being invoked which requires a security decision
advisorProceed the advice-defined anonymous class that implements AspectJCallback containing a simple return proceed(); statement
Returns
  • The returned value from the method invocation