Class AuthorizationAttributeSourceAdvisor

    • Field Detail

      • securityManager

        protected org.apache.shiro.mgt.SecurityManager securityManager
    • Method Detail

      • setSecurityManager

        public void setSecurityManager​(org.apache.shiro.mgt.SecurityManager securityManager)
      • matches

        public boolean matches​(Method method,
                               Class targetClass)
        Returns true if the method or the class has any Shiro annotations, false otherwise. The annotations inspected are:
        • RequiresAuthentication
        • RequiresUser
        • RequiresGuest
        • RequiresRoles
        • RequiresPermissions
        Parameters:
        method - the method to check for a Shiro annotation
        targetClass - the class potentially declaring Shiro annotations
        Returns:
        true if the method has a Shiro annotation, false otherwise.
        See Also:
        MethodMatcher.matches(java.lang.reflect.Method, Class)