org.springframework.security.access.intercept.aspectj
Class AspectJAnnotationSecurityInterceptor
java.lang.Object
org.springframework.security.access.intercept.AbstractSecurityInterceptor
org.springframework.security.access.intercept.aspectj.AspectJAnnotationSecurityInterceptor
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.MessageSourceAware
public class AspectJAnnotationSecurityInterceptor
- extends AbstractSecurityInterceptor
AspectJ interceptor that supports @Aspect notation.
Methods inherited from class org.springframework.security.access.intercept.AbstractSecurityInterceptor |
afterInvocation, afterPropertiesSet, beforeInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectJAnnotationSecurityInterceptor
public AspectJAnnotationSecurityInterceptor()
getSecurityMetadataSource
public MethodSecurityMetadataSource getSecurityMetadataSource()
getSecureObjectClass
public java.lang.Class<? extends java.lang.Object> getSecureObjectClass()
- Description copied from class:
AbstractSecurityInterceptor
- Indicates the type of secure objects the subclass will be presenting to
the abstract parent for processing. This is used to ensure collaborators
wired to the
AbstractSecurityInterceptor
all support the
indicated secure object class.
- Specified by:
getSecureObjectClass
in class AbstractSecurityInterceptor
- Returns:
- the type of secure object the subclass provides services for
invoke
public java.lang.Object invoke(org.aspectj.lang.JoinPoint jp,
AspectJAnnotationCallback advisorProceed)
throws java.lang.Throwable
- This method should be used to enforce security on a
JoinPoint
.
- Parameters:
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
- Returns:
- The returned value from the method invocation
- Throws:
java.lang.Throwable
obtainSecurityMetadataSource
public SecurityMetadataSource obtainSecurityMetadataSource()
- Specified by:
obtainSecurityMetadataSource
in class AbstractSecurityInterceptor
setSecurityMetadataSource
public void setSecurityMetadataSource(MethodSecurityMetadataSource newSource)