java.lang.Object
org.acegisecurity.intercept.AbstractSecurityInterceptor
org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor
- All Implemented Interfaces:
- org.springframework.context.ApplicationEventPublisherAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- public class MethodSecurityInterceptor
- extends org.acegisecurity.intercept.AbstractSecurityInterceptor
Provides security interception of AOP Alliance based method invocations.
The ObjectDefinitionSource required by this security
interceptor is of type org.acegisecurity.intercept.method.MethodDefinitionSource. This is shared with
the AspectJ based security interceptor
(AspectJSecurityInterceptor), since both work with Java
Methods.
Refer to org.acegisecurity.intercept.AbstractSecurityInterceptor for details on the workflow.
- Version:
- $Id: MethodSecurityInterceptor.java,v 1.3 2005/11/17 00:55:49 benalex Exp $
| Methods inherited from class org.acegisecurity.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 |
objectDefinitionSource
private org.acegisecurity.intercept.method.MethodDefinitionSource objectDefinitionSource
MethodSecurityInterceptor
public MethodSecurityInterceptor()
setObjectDefinitionSource
public void setObjectDefinitionSource(org.acegisecurity.intercept.method.MethodDefinitionSource newSource)
getObjectDefinitionSource
public org.acegisecurity.intercept.method.MethodDefinitionSource getObjectDefinitionSource()
getSecureObjectClass
public java.lang.Class getSecureObjectClass()
- Description copied from class:
org.acegisecurity.intercept.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.
invoke
public java.lang.Object invoke(MethodInvocation mi)
throws java.lang.Throwable
- This method should be used to enforce security on a
MethodInvocation.
obtainObjectDefinitionSource
public org.acegisecurity.intercept.ObjectDefinitionSource obtainObjectDefinitionSource()