public final class AspectJMethodSecurityInterceptor extends MethodSecurityInterceptor
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.
logger, messages| Constructor and Description |
|---|
AspectJMethodSecurityInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(org.aspectj.lang.JoinPoint jp)
Method that is suitable for user with @Aspect notation.
|
Object |
invoke(org.aspectj.lang.JoinPoint jp,
AspectJCallback advisorProceed)
Method that is suitable for user with traditional AspectJ-code aspects.
|
getSecureObjectClass, getSecurityMetadataSource, invoke, obtainSecurityMetadataSource, setSecurityMetadataSourceafterInvocation, afterPropertiesSet, beforeInvocation, finallyInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setPublishAuthorizationSuccess, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributespublic Object invoke(org.aspectj.lang.JoinPoint jp) throws Throwable
jp - The AspectJ joint point being invoked which requires a security decisionThrowable - if the invocation throws onepublic Object invoke(org.aspectj.lang.JoinPoint jp, AspectJCallback advisorProceed)
jp - The AspectJ joint point being invoked which requires a security decisionadvisorProceed - the advice-defined anonymous class that implements AspectJCallback containing
a simple return proceed(); statement