类 UserAccountServiceImpl
java.lang.Object
cn.nkpro.elcube.security.impl.UserAccountServiceImpl
- 所有已实现的接口:
UserAccountService,org.springframework.security.core.userdetails.UserDetailsService
@Component("nkAccountService")
public class UserAccountServiceImpl
extends Object
implements UserAccountService
Created by bean on 2019/12/30.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcheckPasswordStrategyAndSha1(UserAccount account)voidvoidclearLoginLock(UserAccountBO user)创建一个token,有效期为30分钟, 返回给前端的过期时间为15分钟, token过期后的15分钟以内,用户仍然可以通过token来刷新tokenvoiddoChangePassword(String accountId, String oldPassword, String newPassword)getAccount(String username, boolean preClear)getAccountById(String id)getAccountDetail(String username)getAccountsByObjectId(List<String> docIds)getAccountSecretByCode(String type, String code)loadUserById(String accountId)loadUserByUsername(String username)loadUserByUsernameFromCache(String username)voidremoveSecret(UserAccountSecret secret)update(UserAccountBO account)voidupdateSecret(UserAccountSecret secret, boolean multipleType)
-
构造器详细资料
-
UserAccountServiceImpl
public UserAccountServiceImpl()
-
-
方法详细资料
-
getAccountById
- 指定者:
getAccountById在接口中UserAccountService
-
getAccountsByObjectId
- 指定者:
getAccountsByObjectId在接口中UserAccountService
-
getAccountDetail
- 指定者:
getAccountDetail在接口中UserAccountService
-
getAccount
- 指定者:
getAccount在接口中UserAccountService
-
getAccountSecretByCode
- 指定者:
getAccountSecretByCode在接口中UserAccountService
-
clear
- 指定者:
clear在接口中UserAccountService
-
checkPasswordStrategyAndSha1
-
doChangePassword
- 指定者:
doChangePassword在接口中UserAccountService
-
createToken
创建一个token,有效期为30分钟, 返回给前端的过期时间为15分钟, token过期后的15分钟以内,用户仍然可以通过token来刷新token- 指定者:
createToken在接口中UserAccountService- 返回:
- token信息
-
refreshToken
- 指定者:
refreshToken在接口中UserAccountService
-
loadUserById
- 指定者:
loadUserById在接口中UserAccountService
-
loadUserByUsername
public UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException- 指定者:
loadUserByUsername在接口中org.springframework.security.core.userdetails.UserDetailsService- 抛出:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
loadUserByUsernameFromCache
public UserDetails loadUserByUsernameFromCache(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException- 指定者:
loadUserByUsernameFromCache在接口中UserAccountService- 抛出:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
accountsPage
public PageList<UserAccount> accountsPage(Integer from, Integer size, String orderField, String order, String keyword)- 指定者:
accountsPage在接口中UserAccountService
-
update
- 指定者:
update在接口中UserAccountService
-
updateSecret
- 指定者:
updateSecret在接口中UserAccountService- 参数:
secret- 新密钥multipleType- type是否允许多选
-
removeSecret
- 指定者:
removeSecret在接口中UserAccountService
-
clearLoginLock
- 指定者:
clearLoginLock在接口中UserAccountService
-