类 NacosUserServiceDirectImpl
java.lang.Object
com.alibaba.nacos.plugin.auth.impl.users.AbstractCachedUserService
com.alibaba.nacos.plugin.auth.impl.users.NacosUserServiceDirectImpl
- 所有已实现的接口:
NacosUserService,org.springframework.security.core.userdetails.UserDetailsService
public class NacosUserServiceDirectImpl
extends AbstractCachedUserService
implements NacosUserService
Custom user service, implemented by directly access to database.
- 作者:
- wfnuser, nkorange
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcreateUser(String username, String password, boolean encode) Create user.voiddeleteUser(String username) Delete user.findUserNames(String username) Find usernames with blur search.com.alibaba.nacos.api.model.Page<User> Find users with blur search by paged.Get User info by username.com.alibaba.nacos.api.model.Page<User> Get users by paged.org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username) voidupdateUserPassword(String username, String password) Update user password.从类继承的方法 com.alibaba.nacos.plugin.auth.impl.users.AbstractCachedUserService
getCachedUserMap, reload从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.alibaba.nacos.plugin.auth.impl.users.NacosUserService
createUser
-
字段详细资料
-
userPersistService
-
authConfigs
-
-
构造器详细资料
-
NacosUserServiceDirectImpl
-
-
方法详细资料
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - 指定者:
loadUserByUsername在接口中org.springframework.security.core.userdetails.UserDetailsService- 抛出:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
updateUserPassword
从接口复制的说明:NacosUserServiceUpdate user password.- 指定者:
updateUserPassword在接口中NacosUserService- 参数:
username- username to be updated passwordpassword- new password
-
getUsers
从接口复制的说明:NacosUserServiceGet users by paged.- 指定者:
getUsers在接口中NacosUserService- 参数:
pageNo- page numberpageSize- page sizeusername- username- 返回:
- user list
-
getUser
从接口复制的说明:NacosUserServiceGet User info by username.- 指定者:
getUser在接口中NacosUserService- 参数:
username- username- 返回:
Userinformation
-
findUserNames
从接口复制的说明:NacosUserServiceFind usernames with blur search.- 指定者:
findUserNames在接口中NacosUserService- 参数:
username- username- 返回:
- usernames
-
createUser
从接口复制的说明:NacosUserServiceCreate user.- 指定者:
createUser在接口中NacosUserService- 参数:
username- usernamepassword- passwordencode-truewill encode password,falsewill not encode password
-
deleteUser
从接口复制的说明:NacosUserServiceDelete user.- 指定者:
deleteUser在接口中NacosUserService- 参数:
username- username
-
findUsers
从接口复制的说明:NacosUserServiceFind users with blur search by paged.- 指定者:
findUsers在接口中NacosUserService- 参数:
username- usernamepageNo- page numberpageSize- page size- 返回:
- user list
-