类 SecurityProxy

  • 所有已实现的接口:
    com.alibaba.nacos.common.lifecycle.Closeable

    public class SecurityProxy
    extends java.lang.Object
    implements com.alibaba.nacos.common.lifecycle.Closeable
    Security proxy to update security information.
    从以下版本开始:
    1.2.0
    作者:
    nkorange
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private com.alibaba.nacos.plugin.auth.spi.client.ClientAuthPluginManager clientAuthPluginManager  
    • 构造器概要

      构造器 
      构造器 说明
      SecurityProxy​(java.util.List<java.lang.String> serverList, com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate)
      Construct from serverList, nacosRestTemplate, init client auth plugin. // TODO change server list to serverListManager after serverListManager refactor and unite.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.util.Map<java.lang.String,​java.lang.String> getIdentityContext​(com.alibaba.nacos.plugin.auth.api.RequestResource resource)
      get the context of all nacosRestTemplate instance.
      void login​(java.util.Properties properties)
      Login all available ClientAuthService instance.
      void shutdown()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • clientAuthPluginManager

        private com.alibaba.nacos.plugin.auth.spi.client.ClientAuthPluginManager clientAuthPluginManager
    • 构造器详细资料

      • SecurityProxy

        public SecurityProxy​(java.util.List<java.lang.String> serverList,
                             com.alibaba.nacos.common.http.client.NacosRestTemplate nacosRestTemplate)
        Construct from serverList, nacosRestTemplate, init client auth plugin. // TODO change server list to serverListManager after serverListManager refactor and unite.
        参数:
        serverList - a server list that client request to.
    • 方法详细资料

      • login

        public void login​(java.util.Properties properties)
        Login all available ClientAuthService instance.
        参数:
        properties - login identity information.
      • getIdentityContext

        public java.util.Map<java.lang.String,​java.lang.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