类 NacosAuthManager
- java.lang.Object
-
- com.alibaba.nacos.plugin.auth.impl.NacosAuthManager
-
@Component @Deprecated public class NacosAuthManager extends java.lang.Object已过时。Builtin access control entry of Nacos.- 从以下版本开始:
- 1.2.0
- 作者:
- nkorange
-
-
字段概要
字段 修饰符和类型 字段 说明 private org.springframework.security.authentication.AuthenticationManagerauthenticationManager已过时。private NacosRoleServiceImplroleService已过时。private TokenManagerDelegatetokenManager已过时。
-
构造器概要
构造器 构造器 说明 NacosAuthManager()已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidauth(com.alibaba.nacos.plugin.auth.api.Permission permission, NacosUser user)已过时。Authorization of request, constituted with resource and user.private NacosUsergetNacosUser(java.lang.String token)已过时。(专用程序包) NacosUserlogin(com.alibaba.nacos.plugin.auth.api.IdentityContext identityContext)已过时。NacosUserlogin(java.lang.Object request)已过时。Authentication of request, identify the user who request the resource.private java.lang.StringresolveToken(com.alibaba.nacos.plugin.auth.api.IdentityContext identityContext)已过时。private java.lang.StringresolveToken(javax.servlet.http.HttpServletRequest request)已过时。Get token from header.private java.lang.StringresolveTokenFromUser(java.lang.String userName, java.lang.String rawPassword)已过时。private voidvalidate0(java.lang.String token)已过时。
-
-
-
字段详细资料
-
tokenManager
@Autowired private TokenManagerDelegate tokenManager
已过时。
-
authenticationManager
@Autowired private org.springframework.security.authentication.AuthenticationManager authenticationManager
已过时。
-
roleService
@Autowired private NacosRoleServiceImpl roleService
已过时。
-
-
方法详细资料
-
login
public NacosUser login(java.lang.Object request) throws com.alibaba.nacos.plugin.auth.exception.AccessException
已过时。Authentication of request, identify the user who request the resource.- 参数:
request- where we can find the user information- 返回:
- user related to this request, null if no user info is found.
- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException- if authentication is failed
-
login
NacosUser login(com.alibaba.nacos.plugin.auth.api.IdentityContext identityContext) throws com.alibaba.nacos.plugin.auth.exception.AccessException
已过时。- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException
-
auth
public void auth(com.alibaba.nacos.plugin.auth.api.Permission permission, NacosUser user) throws com.alibaba.nacos.plugin.auth.exception.AccessException已过时。Authorization of request, constituted with resource and user.- 参数:
permission- permission to authuser- user who wants to access the resource.- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException- if authorization is failed
-
resolveToken
private java.lang.String resolveToken(javax.servlet.http.HttpServletRequest request) throws com.alibaba.nacos.plugin.auth.exception.AccessException已过时。Get token from header.- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException
-
resolveToken
private java.lang.String resolveToken(com.alibaba.nacos.plugin.auth.api.IdentityContext identityContext) throws com.alibaba.nacos.plugin.auth.exception.AccessException已过时。- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException
-
resolveTokenFromUser
private java.lang.String resolveTokenFromUser(java.lang.String userName, java.lang.String rawPassword) throws com.alibaba.nacos.plugin.auth.exception.AccessException已过时。- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException
-
validate0
private void validate0(java.lang.String token) throws com.alibaba.nacos.plugin.auth.exception.AccessException已过时。- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException
-
getNacosUser
private NacosUser getNacosUser(java.lang.String token) throws com.alibaba.nacos.plugin.auth.exception.AccessException
已过时。- 抛出:
com.alibaba.nacos.plugin.auth.exception.AccessException
-
-