类 PlatformAuthorizingRealm
- java.lang.Object
-
- org.apache.shiro.realm.CachingRealm
-
- org.apache.shiro.realm.AuthenticatingRealm
-
- org.apache.shiro.realm.AuthorizingRealm
-
- cn.wizzer.app.web.commons.shiro.realm.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.AuthorizingRealmCreated by wizzer on 2017/1/11.
-
-
构造器概要
构造器 构造器 说明 PlatformAuthorizingRealm()PlatformAuthorizingRealm(org.apache.shiro.authc.credential.CredentialsMatcher matcher)PlatformAuthorizingRealm(org.apache.shiro.cache.CacheManager cacheManager)PlatformAuthorizingRealm(org.apache.shiro.cache.CacheManager cacheManager, org.apache.shiro.authc.credential.CredentialsMatcher matcher)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected org.apache.shiro.authc.AuthenticationInfodoGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)protected org.apache.shiro.authz.AuthorizationInfodoGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)授权查询回调函数, 进行鉴权但缓存中无用户的授权信息时调用.protected org.nutz.integration.jedis.RedisServicegetRedisService()protected cn.wizzer.app.sys.modules.services.SysRoleServicegetRoleService()protected cn.wizzer.app.sys.modules.services.SysUserServicegetUserService()-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
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
-
-