类 OAuthRealm
java.lang.Object
org.apache.shiro.realm.CachingRealm
org.apache.shiro.realm.AuthenticatingRealm
org.apache.shiro.realm.AuthorizingRealm
com.flyfish.oauth.shiro.realm.OAuthRealm
- 所有已实现的接口:
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 OAuthRealm
extends org.apache.shiro.realm.AuthorizingRealm
oauth内置realm,使用该模块启用
本质上是jwt,但是使用独立的一套逻辑支持
- 作者:
- wangyu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected org.apache.shiro.authc.AuthenticationInfodoGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token) 认证信息protected org.apache.shiro.authz.AuthorizationInfodoGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals) 获取基本的鉴权信息,booleansupports(org.apache.shiro.authc.AuthenticationToken token) 从类继承的方法 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从类继承的方法 org.apache.shiro.realm.CachingRealm
clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled从类继承的方法 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.shiro.util.Initializable
init
-
构造器详细资料
-
OAuthRealm
public OAuthRealm()
-
-
方法详细资料
-
supports
public boolean supports(org.apache.shiro.authc.AuthenticationToken token) - 指定者:
supports在接口中org.apache.shiro.realm.Realm- 覆盖:
supports在类中org.apache.shiro.realm.AuthenticatingRealm
-
doGetAuthorizationInfo
protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals) 获取基本的鉴权信息,- 指定者:
doGetAuthorizationInfo在类中org.apache.shiro.realm.AuthorizingRealm- 参数:
principals- 鉴权信息- 返回:
- 结果
-
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- 参数:
token- 认证token- 返回:
- 结果
- 抛出:
org.apache.shiro.authc.AuthenticationException- 异常
-