public abstract class AuthorizingMethodInterceptor extends MethodInterceptorSupport
| Constructor and Description |
|---|
AuthorizingMethodInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
assertAuthorized(MethodInvocation methodInvocation)
Asserts that the specified MethodInvocation is allowed to continue by performing any necessary authorization
(access control) checks first.
|
Object |
invoke(MethodInvocation methodInvocation)
Invokes the specified method (
methodInvocation.
if authorization is allowed by first
calling assertAuthorized. |
getSubjectpublic Object invoke(MethodInvocation methodInvocation) throws Throwable
methodInvocation.proceed()
if authorization is allowed by first
calling assertAuthorized.methodInvocation - the MethodInvocation to execute.Throwable - if the method invocation throws a Throwable or if an error occurs in pre/post/finally advice.protected abstract void assertAuthorized(MethodInvocation methodInvocation) throws AuthorizationException
methodInvocation - the MethodInvocation to invoke.AuthorizationException - if the methodInvocation should not be allowed to continue/execute.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.