类 SecurityProxy
java.lang.Object
com.alibaba.nacos.client.security.SecurityProxy
- 所有已实现的接口:
com.alibaba.nacos.common.lifecycle.Closeable
Security proxy to update security information.
- 从以下版本开始:
- 1.2.0
- 作者:
- nkorange
-
构造器概要
构造器构造器说明SecurityProxy(com.alibaba.nacos.client.address.AbstractServerListManager serverListManager, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate) Construct from serverListManager, nacosRestTemplate, init client auth plugin. -
方法概要
修饰符和类型方法说明getIdentityContext(com.alibaba.nacos.plugin.auth.api.RequestResource resource) get the context of all nacosRestTemplate instance.voidlogin(Properties properties) Login all available ClientAuthService instance.voidreLogin()Login again to refresh the accessToken.voidshutdown()
-
构造器详细资料
-
SecurityProxy
public SecurityProxy(com.alibaba.nacos.client.address.AbstractServerListManager serverListManager, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate) Construct from serverListManager, nacosRestTemplate, init client auth plugin.- 参数:
serverListManager- a server list manager that client request to.
-
-
方法详细资料
-
login
Login all available ClientAuthService instance.- 参数:
properties- login identity information.
-
getIdentityContext
public Map<String,String> getIdentityContext(com.alibaba.nacos.plugin.auth.api.RequestResource resource) get the context of all nacosRestTemplate instance.- 返回:
- a combination of all context.
-
shutdown
public void shutdown() throws com.alibaba.nacos.api.exception.NacosException- 指定者:
shutdown在接口中com.alibaba.nacos.common.lifecycle.Closeable- 抛出:
com.alibaba.nacos.api.exception.NacosException
-
reLogin
public void reLogin()Login again to refresh the accessToken.
-