接口 SecuritySpi
- 所有已知实现类:
NothingSecuritySpi
public interface SecuritySpi
安全提供者接口定义。
通过该接口使得 iplatform-base-security 模块可以解耦。
通过该接口使得 iplatform-base-security 模块可以解耦。
- 作者:
- 时克英
-
方法概要
修饰符和类型方法说明encryptPassword(String password) 加密给定的明文密码返回当前登录用户对象long返回当前登录用户IDcom.walker.web.UserPrincipal<S_user_core>返回当前登录用户凭证信息返回当前登录用户具有的角色ID集合。boolean是否允许移动端,在登录时手机号不存在直接注册?login(RequestLogin requestLogin) 用户登录系统过程方法,抽取该方法可以在自定义登录中灵活使用。void已过时。booleanmatchesPassword(String rawPassword, String encodedPassword) 比较给定的密码是否与加密相等。
-
方法详细资料
-
getCurrentUserRoleIdList
返回当前登录用户具有的角色ID集合。- 返回:
-
getCurrentUserPrincipal
com.walker.web.UserPrincipal<S_user_core> getCurrentUserPrincipal()返回当前登录用户凭证信息- 返回:
-
getCurrentUser
S_user_core getCurrentUser()返回当前登录用户对象- 返回:
-
getCurrentUserId
long getCurrentUserId()返回当前登录用户ID- 返回:
-
encryptPassword
加密给定的明文密码- 参数:
password-- 返回:
- 返回密文密码
-
matchesPassword
比较给定的密码是否与加密相等。- 参数:
rawPassword- 原始明文密码encodedPassword- 加密的密码- 返回:
-
isAllowMobileLoginRegister
boolean isAllowMobileLoginRegister()是否允许移动端,在登录时手机号不存在直接注册?- 返回:
-
login
用户登录系统过程方法,抽取该方法可以在自定义登录中灵活使用。- 参数:
requestLogin-- 返回:
- 抛出:
LoginException- 登录异常抛出提示错误
-
loginAsWorkflowRole
已过时。以流程角色登录获取权限,activiti7专用,后续会废弃。
-