public class BaseRealm
extends org.apache.shiro.realm.AuthorizingRealm
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Long |
timeOut |
protected ZlUserToken.ValidateType |
validateType
验证类型
|
| 构造器和说明 |
|---|
BaseRealm() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
assertCredentialsMatch(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.authc.AuthenticationInfo info) |
protected org.apache.shiro.authc.AuthenticationInfo |
doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken authcToken)
登录认证; 登陆验证。
|
protected org.apache.shiro.authz.AuthorizationInfo |
doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals) |
protected RetVo |
doLog(UserVo userVo)
登录日志记录
|
protected void |
doOnlineUser(UserVo userVo)
记录在线用户
|
protected org.apache.shiro.session.Session |
getSession()
* 将一些数据放到ShiroSession中,以便于其它地方使用 比如Controller,使用时直接用HttpSession.getAttribute(key)就可以取到
|
java.lang.Long |
getTimeOut() |
protected void |
getUserAuth(UserVo userVo)
获取用户权限
|
protected RetVo |
getUserDetailInfo(ZlUserToken token) |
protected BdOrg |
getUserOrg(java.lang.String id)
获取用户的机构
|
protected java.util.List<CoreUserDept> |
getUserRoleList(java.lang.String userid)
获取用户角色部门
|
ZlUserToken.ValidateType |
getValidateType() |
protected void |
setSession(java.lang.Object key,
java.lang.Object value)
* 将一些数据放到ShiroSession中,以便于其它地方使用 比如Controller,使用时直接用HttpSession.getAttribute(key)就可以取到
|
void |
setTimeOut(java.lang.Long timeOut) |
protected UserVo |
setUserVo(CoreUser coreUser,
java.util.List<CoreUserDept> rolelist,
BdOrg bdOrg,
ZlUserToken token)
设置uservo信息
|
void |
setValidateType(ZlUserToken.ValidateType validateType) |
protected void |
updateUserIp(CoreUser coreUser) |
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, setRolePermissionResolverclearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supportsclearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabledprotected java.lang.Long timeOut
protected ZlUserToken.ValidateType validateType
public ZlUserToken.ValidateType getValidateType()
public void setValidateType(ZlUserToken.ValidateType validateType)
protected void setSession(java.lang.Object key,
java.lang.Object value)
key - value - protected org.apache.shiro.session.Session getSession()
key - value - protected java.util.List<CoreUserDept> getUserRoleList(java.lang.String userid)
userid - 用户idprotected BdOrg getUserOrg(java.lang.String id)
id - 机构idprotected void getUserAuth(UserVo userVo)
userVo - protected RetVo getUserDetailInfo(ZlUserToken token) throws java.lang.Exception
token - java.lang.Exception - 出错会抛出异常
获取用户信息protected UserVo setUserVo(CoreUser coreUser, java.util.List<CoreUserDept> rolelist, BdOrg bdOrg, ZlUserToken token)
coreUser - 用户实体实例rolelist - bdOrg - 机构实体实例protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken authcToken)
throws org.apache.shiro.authc.AuthenticationException
doGetAuthenticationInfo 在类中 org.apache.shiro.realm.AuthenticatingRealmorg.apache.shiro.authc.AuthenticationExceptionprotected void doOnlineUser(UserVo userVo) throws java.lang.Exception
userVo - java.lang.Exception - 出错会抛出异常protected void updateUserIp(CoreUser coreUser)
public java.lang.Long getTimeOut()
public void setTimeOut(java.lang.Long timeOut)
protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
doGetAuthorizationInfo 在类中 org.apache.shiro.realm.AuthorizingRealmprotected void assertCredentialsMatch(org.apache.shiro.authc.AuthenticationToken token,
org.apache.shiro.authc.AuthenticationInfo info)
throws org.apache.shiro.authc.AuthenticationException
assertCredentialsMatch 在类中 org.apache.shiro.realm.AuthenticatingRealmorg.apache.shiro.authc.AuthenticationException