java.lang.Object
com.alibaba.nacos.common.notify.listener.Subscriber<ServerConfigChangeEvent>
com.alibaba.nacos.plugin.auth.impl.configuration.AuthConfigs

@Configuration public class AuthConfigs extends Subscriber<ServerConfigChangeEvent>
Auth related configurations.
从以下版本开始:
1.2.0
作者:
nkorange, mai.jh
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • PREFIX

      private static final String PREFIX
      另请参阅:
    • cachingEnabled

      private static Boolean cachingEnabled
    • authEnabled

      @Value("${nacos.core.auth.enabled:false}") private boolean authEnabled
      Whether server auth enabled.
    • consoleAuthEnabled

      @Value("${nacos.core.auth.console.enabled:true}") private boolean consoleAuthEnabled
      Whether console auth enabled.
    • nacosAuthSystemType

      @Value("${nacos.core.auth.system.type:}") private String nacosAuthSystemType
      Which auth system is in use.
    • serverIdentityKey

      @Value("${nacos.core.auth.server.identity.key:}") private String serverIdentityKey
    • serverIdentityValue

      @Value("${nacos.core.auth.server.identity.value:}") private String serverIdentityValue
    • hasGlobalAdminRole

      private boolean hasGlobalAdminRole
    • authPluginProperties

      private Map<String,Properties> authPluginProperties
  • 构造器详细资料

    • AuthConfigs

      public AuthConfigs()
  • 方法详细资料

    • validate

      @PostConstruct public void validate() throws com.alibaba.nacos.api.exception.NacosException
      Validate auth config.
      抛出:
      com.alibaba.nacos.api.exception.NacosException - If the config is not valid.
    • refreshPluginProperties

      private void refreshPluginProperties()
    • isHasGlobalAdminRole

      public boolean isHasGlobalAdminRole()
    • setHasGlobalAdminRole

      public void setHasGlobalAdminRole(boolean hasGlobalAdminRole)
    • getNacosAuthSystemType

      public String getNacosAuthSystemType()
    • getServerIdentityKey

      public String getServerIdentityKey()
    • getServerIdentityValue

      public String getServerIdentityValue()
    • isConsoleAuthEnabled

      public boolean isConsoleAuthEnabled()
      console auth function is open.
      返回:
      console auth function is open
    • isAuthEnabled

      public boolean isAuthEnabled()
      server auth function is open.
      返回:
      server auth function is open
    • isCachingEnabled

      public boolean isCachingEnabled()
      Whether permission information can be cached.
      返回:
      bool
    • getAuthPluginProperties

      public Properties getAuthPluginProperties(String authType)
    • setCachingEnabled

      public static void setCachingEnabled(boolean cachingEnabled)
    • onEvent

      public void onEvent(ServerConfigChangeEvent event)
      指定者:
      onEvent 在类中 Subscriber<ServerConfigChangeEvent>
    • subscribeType

      public Class<? extends Event> subscribeType()
      指定者:
      subscribeType 在类中 Subscriber<ServerConfigChangeEvent>