com.github.dactiv.showcase.service.account
类 AuthorizationRealm

java.lang.Object
  继承者 org.apache.shiro.realm.CachingRealm
      继承者 org.apache.shiro.realm.AuthenticatingRealm
          继承者 org.apache.shiro.realm.AuthorizingRealm
              继承者 com.github.dactiv.showcase.service.account.AuthorizationRealm
所有已实现的接口:
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
直接已知子类:
JdbcAuthenticationRealm

public abstract class AuthorizationRealm
extends org.apache.shiro.realm.AuthorizingRealm

apache shiro 的公用授权类

作者:
maurice

构造方法摘要
AuthorizationRealm()
           
 
方法摘要
protected  org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
          当用户进行访问链接时的授权方法
 void setDefaultPermission(List<String> defaultPermission)
          设置默认permission
 void setDefaultPermissionString(String defaultPermissionString)
          设置默认permission
 
从类 org.apache.shiro.realm.AuthorizingRealm 继承的方法
afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver
 
从类 org.apache.shiro.realm.AuthenticatingRealm 继承的方法
assertCredentialsMatch, clearCachedAuthenticationInfo, doGetAuthenticationInfo, 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.apache.shiro.util.Initializable 继承的方法
init
 

构造方法详细信息

AuthorizationRealm

public AuthorizationRealm()
方法详细信息

setDefaultPermissionString

public void setDefaultPermissionString(String defaultPermissionString)
设置默认permission

参数:
defaultPermissionString - permission 如果存在多个值,使用逗号","分割

setDefaultPermission

public void setDefaultPermission(List<String> defaultPermission)
设置默认permission

参数:
defaultPermission - permission

doGetAuthorizationInfo

protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
当用户进行访问链接时的授权方法

指定者:
org.apache.shiro.realm.AuthorizingRealm 中的 doGetAuthorizationInfo


Copyright © 2014. All rights reserved.