public class MethodSecurityInterceptor extends AbstractSecurityInterceptor implements org.aopalliance.intercept.MethodInterceptor
The
ObjectDefinitionSource required by this security interceptor is of type MethodDefinitionSource. This is shared with the AspectJ based security interceptor
(AspectJSecurityInterceptor), since both work with Java Methods.
Refer to AbstractSecurityInterceptor for details on the workflow.
logger, messages| Constructor and Description |
|---|
MethodSecurityInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
MethodDefinitionSource |
getObjectDefinitionSource() |
java.lang.Class |
getSecureObjectClass()
Indicates the type of secure objects the subclass will be presenting to
the abstract parent for processing.
|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation mi)
This method should be used to enforce security on a
MethodInvocation. |
ObjectDefinitionSource |
obtainObjectDefinitionSource() |
void |
setObjectDefinitionSource(MethodDefinitionSource newSource) |
afterInvocation, afterPropertiesSet, beforeInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setRejectPublicInvocations, setRunAsManager, setValidateConfigAttributespublic MethodDefinitionSource getObjectDefinitionSource()
public java.lang.Class getSecureObjectClass()
AbstractSecurityInterceptorAbstractSecurityInterceptor all support the
indicated secure object class.getSecureObjectClass in class AbstractSecurityInterceptorpublic java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
MethodInvocation.invoke in interface org.aopalliance.intercept.MethodInterceptormi - The method being invoked which requires a security decisionjava.lang.Throwable - if any error occurspublic ObjectDefinitionSource obtainObjectDefinitionSource()
obtainObjectDefinitionSource in class AbstractSecurityInterceptorpublic void setObjectDefinitionSource(MethodDefinitionSource newSource)