public class AuthorizationAttributeSourceAdvisor extends StaticMethodMatcherPointcutAdvisor
Modifier and Type | Field and Description |
---|---|
protected SecurityManager |
securityManager |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
TRUE
Constructor and Description |
---|
AuthorizationAttributeSourceAdvisor()
Create a new AuthorizationAttributeSourceAdvisor.
|
Modifier and Type | Method and Description |
---|---|
SecurityManager |
getSecurityManager() |
boolean |
matches(Method method,
Class targetClass)
Returns true if the method or the class has any Shiro annotations, false otherwise.
|
void |
setSecurityManager(SecurityManager securityManager) |
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrder
getClassFilter, getMethodMatcher, setClassFilter
isRuntime, matches
protected SecurityManager securityManager
public AuthorizationAttributeSourceAdvisor()
public SecurityManager getSecurityManager()
public void setSecurityManager(SecurityManager securityManager)
public boolean matches(Method method, Class targetClass)
method
- the method to check for a Shiro annotationtargetClass
- the class potentially declaring Shiro annotationsMethodMatcher.matches(java.lang.reflect.Method, Class)
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.