Class BcdShiroHelper


  • public class BcdShiroHelper
    extends java.lang.Object
    Helper in Shiro's package to access protected parts of Shiro's API
    • Constructor Summary

      Constructors 
      Constructor Description
      BcdShiroHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getAuthorizationInfo​(org.apache.shiro.realm.AuthorizingRealm realm, org.apache.shiro.subject.PrincipalCollection pc)
      Allow to retrieve the permissions from a Shiro principal for a Realm We want to get all permissions for example for in - clauses in SQL but Shiro API thinks in terms of 'am I allowed to do this' and we want 'what are the things I am allowed' Shiro's AuthorizingRealm.getAuthorizationInfo() is therefore protected and we have this class in the same package to still cleanly call it
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BcdShiroHelper

        public BcdShiroHelper()
    • Method Detail

      • getAuthorizationInfo

        public static java.lang.Object getAuthorizationInfo​(org.apache.shiro.realm.AuthorizingRealm realm,
                                                            org.apache.shiro.subject.PrincipalCollection pc)
        Allow to retrieve the permissions from a Shiro principal for a Realm We want to get all permissions for example for in - clauses in SQL but Shiro API thinks in terms of 'am I allowed to do this' and we want 'what are the things I am allowed' Shiro's AuthorizingRealm.getAuthorizationInfo() is therefore protected and we have this class in the same package to still cleanly call it