Class AuthorizationAttributeSourceAdvisor

All Implemented Interfaces:
Serializable, Advisor, MethodMatcher, Pointcut, PointcutAdvisor, Ordered

TODO - complete JavaDoc
Since:
0.1
See Also:
  • Field Details

    • securityManager

      protected org.apache.shiro.mgt.SecurityManager securityManager
  • Constructor Details

  • Method Details

    • getSecurityManager

      public org.apache.shiro.mgt.SecurityManager getSecurityManager()
    • 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: