public class AuthorizationAttributeSourceAdvisor
extends org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.shiro.mgt.SecurityManager |
securityManager |
| Constructor and Description |
|---|
AuthorizationAttributeSourceAdvisor()
Create a new AuthorizationAttributeSourceAdvisor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.shiro.mgt.SecurityManager |
getSecurityManager() |
boolean |
matches(Method method,
Class targetClass)
Returns true if the method or the class has any Shiro annotations, false otherwise.
|
void |
setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager) |
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrderpublic AuthorizationAttributeSourceAdvisor()
public org.apache.shiro.mgt.SecurityManager getSecurityManager()
public void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
public boolean matches(Method method, Class targetClass)
RequiresAuthenticationRequiresUserRequiresGuestRequiresRolesRequiresPermissionsmethod - 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.