Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-332

Change access level of method 'isPermitted' in org.apache.shiro.realm.AuthorizingRealm (line 461) from private to protected

    XMLWordPrintableJSON

Details

    Description

      In org.apache.shiro.realm.AuthorizingRealm, line 461, the method private boolean isPermitted(Permission permission, AuthorizationInfo info) should have its access level set to protected. This method is the ideal method to override If a developer wishes to change how a realm that extends AuthorizingRealm interacts with the AuthorizationInfo when permissions are checked. This is because all of the 'isPermitted' method overloads delegate the actual permission checking to this method. As the class stands now, all of the isPermitted overloads have to be re-implemented as overrides to Authorizing realm in order for the developer to safely change this behavior.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              clifford.harms clifford harms
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified