public class LoginNameRealm
extends org.apache.shiro.realm.AuthorizingRealm
| 限定符和类型 | 字段和说明 |
|---|---|
private UserService |
userService |
| 构造器和说明 |
|---|
LoginNameRealm() |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
authorizationValidate(org.apache.shiro.authz.Permission permission)
授权验证方法
|
protected void |
checkPermission(org.apache.shiro.authz.Permission permission,
org.apache.shiro.authz.AuthorizationInfo info) |
protected void |
clearCache(org.apache.shiro.subject.PrincipalCollection principals) |
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)
获取授权信息
|
void |
initCredentialsMatcher()
设定密码校验的Hash算法与迭代次数
|
protected boolean[] |
isPermitted(List<org.apache.shiro.authz.Permission> permissions,
org.apache.shiro.authz.AuthorizationInfo info) |
boolean |
isPermitted(org.apache.shiro.subject.PrincipalCollection principals,
org.apache.shiro.authz.Permission permission) |
protected boolean |
isPermittedAll(Collection<org.apache.shiro.authz.Permission> permissions,
org.apache.shiro.authz.AuthorizationInfo info) |
afterCacheManagerSet, 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, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolverassertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supportsgetAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled@Autowired private UserService userService
protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
doGetAuthorizationInfo 在类中 org.apache.shiro.realm.AuthorizingRealmprotected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
throws org.apache.shiro.authc.AuthenticationException
doGetAuthenticationInfo 在类中 org.apache.shiro.realm.AuthenticatingRealmorg.apache.shiro.authc.AuthenticationExceptionprotected void checkPermission(org.apache.shiro.authz.Permission permission,
org.apache.shiro.authz.AuthorizationInfo info)
checkPermission 在类中 org.apache.shiro.realm.AuthorizingRealmprotected boolean[] isPermitted(List<org.apache.shiro.authz.Permission> permissions, org.apache.shiro.authz.AuthorizationInfo info)
isPermitted 在类中 org.apache.shiro.realm.AuthorizingRealmpublic boolean isPermitted(org.apache.shiro.subject.PrincipalCollection principals,
org.apache.shiro.authz.Permission permission)
isPermitted 在接口中 org.apache.shiro.authz.AuthorizerisPermitted 在类中 org.apache.shiro.realm.AuthorizingRealmprotected boolean isPermittedAll(Collection<org.apache.shiro.authz.Permission> permissions, org.apache.shiro.authz.AuthorizationInfo info)
isPermittedAll 在类中 org.apache.shiro.realm.AuthorizingRealmprivate void authorizationValidate(org.apache.shiro.authz.Permission permission)
permission - @PostConstruct public void initCredentialsMatcher()
protected void clearCache(org.apache.shiro.subject.PrincipalCollection principals)
clearCache 在类中 org.apache.shiro.realm.CachingRealmCopyright © 2023. All rights reserved.