类 RemoteServerUtil

java.lang.Object
com.alibaba.nacos.plugin.auth.impl.utils.RemoteServerUtil

public class RemoteServerUtil extends Object
Nacos auth plugin remote nacos server util.
作者:
xiweng.yy
  • 字段详细资料

    • serverAddresses

      private static List<String> serverAddresses
    • index

      private static AtomicInteger index
    • remoteServerContextPath

      private static String remoteServerContextPath
  • 构造器详细资料

    • RemoteServerUtil

      public RemoteServerUtil()
  • 方法详细资料

    • initRemoteServerContextPath

      private static void initRemoteServerContextPath()
    • registerWatcher

      private static void registerWatcher()
    • readRemoteServerAddress

      public static void readRemoteServerAddress()
      Read nacos server address from cluster.conf.
    • getServerAddresses

      public static List<String> getServerAddresses()
    • getOneNacosServerAddress

      public static String getOneNacosServerAddress()
    • getRemoteServerContextPath

      public static String getRemoteServerContextPath()
    • singleCheckResult

      public static void singleCheckResult(HttpRestResult<String> result) throws com.alibaba.nacos.api.exception.NacosException
      Single check http result, if not success, wrapper result as Nacos exception.
      参数:
      result - http execute result
      抛出:
      com.alibaba.nacos.api.exception.NacosException - wrapper result as NacosException
    • buildServerRemoteHeader

      public static Header buildServerRemoteHeader(AuthConfigs authConfigs)
      According input AuthConfigs to build remote server identity header.
      参数:
      authConfigs - authConfigs
      返回:
      remote server identity header