类 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.AuthenticationInfo
    doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
    认证信息
    protected org.apache.shiro.authz.AuthorizationInfo
    doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
    获取基本的鉴权信息,
    boolean
    supports(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

    从接口继承的方法 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 - 异常