类 AuthConfigs


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

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • PREFIX

        private static final java.lang.String PREFIX
        另请参阅:
        常量字段值
      • cachingEnabled

        private static java.lang.Boolean cachingEnabled
      • authEnabled

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

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

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

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

        @Value("${nacos.core.auth.enable.userAgentAuthWhite:false}")
        private boolean enableUserAgentAuthWhite
      • authPluginProperties

        private java.util.Map<java.lang.String,​java.util.Properties> authPluginProperties
    • 构造器详细资料

      • AuthConfigs

        public AuthConfigs()
    • 方法详细资料

      • refreshPluginProperties

        private void refreshPluginProperties()
      • getNacosAuthSystemType

        public java.lang.String getNacosAuthSystemType()
      • getServerIdentityKey

        public java.lang.String getServerIdentityKey()
      • getServerIdentityValue

        public java.lang.String getServerIdentityValue()
      • isEnableUserAgentAuthWhite

        public boolean isEnableUserAgentAuthWhite()
      • isAuthEnabled

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

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

        public java.util.Properties getAuthPluginProperties​(java.lang.String authType)
      • setCachingEnabled

        public static void setCachingEnabled​(boolean cachingEnabled)
      • onEvent

        public void onEvent​(com.alibaba.nacos.common.event.ServerConfigChangeEvent event)
        指定者:
        onEvent 在类中 com.alibaba.nacos.common.notify.listener.Subscriber<com.alibaba.nacos.common.event.ServerConfigChangeEvent>
      • subscribeType

        public java.lang.Class<? extends com.alibaba.nacos.common.notify.Event> subscribeType()
        指定者:
        subscribeType 在类中 com.alibaba.nacos.common.notify.listener.Subscriber<com.alibaba.nacos.common.event.ServerConfigChangeEvent>