Class SubjectPreferencesRealm

  • All Implemented Interfaces:
    org.apache.shiro.authc.LogoutAware, org.apache.shiro.authz.Authorizer, org.apache.shiro.authz.permission.PermissionResolverAware, org.apache.shiro.authz.permission.RolePermissionResolverAware, org.apache.shiro.cache.CacheManagerAware, org.apache.shiro.realm.Realm, org.apache.shiro.util.Initializable, org.apache.shiro.util.Nameable

    public class SubjectPreferencesRealm
    extends org.apache.shiro.realm.AuthorizingRealm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken arg0)  
      protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo​(org.apache.shiro.subject.PrincipalCollection arg0)  
      java.util.Set<java.lang.String> generateBcdAnyPerms()  
      java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.String>> getPermissionMap()  
      void refreshPermissions​(org.apache.shiro.session.Session session)  
      void setPermissionMap​(java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.String>> permissionMap)  
      • Methods inherited from class org.apache.shiro.realm.AuthorizingRealm

        afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getPermissions, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver
      • Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm

        assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports
      • Methods inherited from class org.apache.shiro.realm.CachingRealm

        clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.shiro.util.Initializable

        init
    • Field Detail

      • PERMISSION_MAP_TOKEN

        public static final java.lang.String PERMISSION_MAP_TOKEN
        See Also:
        Constant Field Values
      • PERMISSION_MAP_SESSION_ATTRIBUTE

        public static final java.lang.String PERMISSION_MAP_SESSION_ATTRIBUTE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SubjectPreferencesRealm

        public SubjectPreferencesRealm()
    • Method Detail

      • doGetAuthorizationInfo

        protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo​(org.apache.shiro.subject.PrincipalCollection arg0)
        Specified by:
        doGetAuthorizationInfo in class org.apache.shiro.realm.AuthorizingRealm
      • generateBcdAnyPerms

        public java.util.Set<java.lang.String> generateBcdAnyPerms()
      • getPermissionMap

        public java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.String>> getPermissionMap()
      • setPermissionMap

        public void setPermissionMap​(java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.String>> permissionMap)
      • refreshPermissions

        public void refreshPermissions​(org.apache.shiro.session.Session session)
      • doGetAuthenticationInfo

        protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken arg0)
                                                                             throws org.apache.shiro.authc.AuthenticationException
        Specified by:
        doGetAuthenticationInfo in class org.apache.shiro.realm.AuthenticatingRealm
        Throws:
        org.apache.shiro.authc.AuthenticationException