类 SecurityProxy

java.lang.Object
com.alibaba.nacos.client.security.SecurityProxy
所有已实现的接口:
com.alibaba.nacos.common.lifecycle.Closeable

public class SecurityProxy extends Object implements 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.
    void
    login(Properties properties)
    Login all available ClientAuthService instance.
    void
    Login again to refresh the accessToken.
    void
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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

      public void login(Properties properties)
      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.