类 PlatformAuthorizingRealm

  • 所有已实现的接口:
    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

    @IocBean(name="platformRealm")
    public class PlatformAuthorizingRealm
    extends org.apache.shiro.realm.AuthorizingRealm
    Created by wizzer on 2017/1/11.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken token)  
      protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo​(org.apache.shiro.subject.PrincipalCollection principals)
      授权查询回调函数, 进行鉴权但缓存中无用户的授权信息时调用.
      protected org.nutz.integration.jedis.RedisService getRedisService()  
      protected cn.wizzer.app.sys.modules.services.SysRoleService getRoleService()  
      protected cn.wizzer.app.sys.modules.services.SysUserService getUserService()  
      • 从类继承的方法 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
      • 从类继承的方法 org.apache.shiro.realm.AuthenticatingRealm

        assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports
      • 从类继承的方法 org.apache.shiro.realm.CachingRealm

        clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled
      • 从接口继承的方法 org.apache.shiro.util.Initializable

        init
    • 构造器详细资料

      • PlatformAuthorizingRealm

        public PlatformAuthorizingRealm()
      • PlatformAuthorizingRealm

        public PlatformAuthorizingRealm​(org.apache.shiro.cache.CacheManager cacheManager,
                                        org.apache.shiro.authc.credential.CredentialsMatcher matcher)
      • PlatformAuthorizingRealm

        public PlatformAuthorizingRealm​(org.apache.shiro.cache.CacheManager cacheManager)
      • PlatformAuthorizingRealm

        public PlatformAuthorizingRealm​(org.apache.shiro.authc.credential.CredentialsMatcher matcher)
    • 方法详细资料

      • getUserService

        protected cn.wizzer.app.sys.modules.services.SysUserService getUserService()
      • getRoleService

        protected cn.wizzer.app.sys.modules.services.SysRoleService getRoleService()
      • getRedisService

        protected org.nutz.integration.jedis.RedisService getRedisService()
      • doGetAuthenticationInfo

        protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken token)
                                                                             throws org.apache.shiro.authc.AuthenticationException
        指定者:
        doGetAuthenticationInfo 在类中 org.apache.shiro.realm.AuthenticatingRealm
        抛出:
        org.apache.shiro.authc.AuthenticationException
      • doGetAuthorizationInfo

        protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo​(org.apache.shiro.subject.PrincipalCollection principals)
        授权查询回调函数, 进行鉴权但缓存中无用户的授权信息时调用.
        指定者:
        doGetAuthorizationInfo 在类中 org.apache.shiro.realm.AuthorizingRealm