@Component
public class AuthRealm
extends org.apache.shiro.realm.AuthorizingRealm
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) TokenConfig.ApiToken |
apiToken |
(专用程序包) CodeRedisUtils |
codeRedisUtils |
(专用程序包) org.springframework.data.redis.core.RedisTemplate |
redisTemplate |
(专用程序包) TokenHandler |
tokenHandler |
| 构造器和说明 |
|---|
AuthRealm() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.shiro.authc.AuthenticationInfo |
doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
doGetAuthenticationInfo
|
protected org.apache.shiro.authz.AuthorizationInfo |
doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
doGetAuthorizationInfo
|
boolean |
supports(org.apache.shiro.authc.AuthenticationToken token) |
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, setRolePermissionResolverassertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcherclearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled@Autowired TokenHandler tokenHandler
@Autowired org.springframework.data.redis.core.RedisTemplate redisTemplate
@Autowired CodeRedisUtils codeRedisUtils
@Autowired TokenConfig.ApiToken apiToken
public boolean supports(org.apache.shiro.authc.AuthenticationToken token)
supports 在接口中 org.apache.shiro.realm.Realmsupports 在类中 org.apache.shiro.realm.AuthenticatingRealmprotected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
doGetAuthorizationInfo 在类中 org.apache.shiro.realm.AuthorizingRealmprincipals - PrincipalCollectionprotected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
throws org.apache.shiro.authc.AuthenticationException
doGetAuthenticationInfo 在类中 org.apache.shiro.realm.AuthenticatingRealmtoken - AuthenticationTokenorg.apache.shiro.authc.AuthenticationExceptionCopyright © 2022. All rights reserved.