类的使用
com.alibaba.nacos.plugin.auth.impl.users.NacosUser
使用NacosUser的程序包
程序包
说明
-
com.alibaba.nacos.plugin.auth.impl中NacosUser的使用
-
com.alibaba.nacos.plugin.auth.impl.authenticate中NacosUser的使用
修饰符和类型方法说明AbstractAuthenticationManager.authenticate(jakarta.servlet.http.HttpServletRequest httpServletRequest) AbstractAuthenticationManager.authenticate(String token) AbstractAuthenticationManager.authenticate(String username, String rawPassword) IAuthenticationManager.authenticate(jakarta.servlet.http.HttpServletRequest httpServletRequest) Authentication of request, identify the user who request the resource.IAuthenticationManager.authenticate(String jwtToken) Authentication with jwt.IAuthenticationManager.authenticate(String username, String rawPassword) Authentication of user with password.LdapAuthenticationManager.authenticate(String username, String rawPassword) 修饰符和类型方法说明voidAbstractAuthenticationManager.authorize(Permission permission, NacosUser nacosUser) voidIAuthenticationManager.authorize(Permission permission, NacosUser nacosUser) Authorize if the nacosUser has the specified permission.booleanAbstractAuthenticationManager.hasGlobalAdminRole(NacosUser nacosUser) booleanIAuthenticationManager.hasGlobalAdminRole(NacosUser nacosUser) Whether the user has the administrator role. -
com.alibaba.nacos.plugin.auth.impl.jwt中NacosUser的使用
-
com.alibaba.nacos.plugin.auth.impl.roles中NacosUser的使用
修饰符和类型方法说明booleanAbstractCheckedRoleService.hasPermission(NacosUser nacosUser, Permission permission) booleanNacosRoleService.hasPermission(NacosUser nacosUser, Permission permission) Determine if the user has permission of the resource. -
com.alibaba.nacos.plugin.auth.impl.token中NacosUser的使用
修饰符和类型方法说明TokenManager.parseToken(String token) parse token.TokenManagerDelegate.parseToken(String token) -
com.alibaba.nacos.plugin.auth.impl.token.impl中NacosUser的使用
修饰符和类型方法说明CachedJwtTokenManager.TokenEntity.getNacosUser()CachedJwtTokenManager.parseToken(String token) JwtTokenManager.parseToken(String token) 限定符构造器说明TokenEntity(String token, String userName, long expiredTimeMills, org.springframework.security.core.Authentication authentication, NacosUser nacosUser)