类 AuthConfigs
java.lang.Object
com.alibaba.nacos.common.notify.listener.Subscriber<ServerConfigChangeEvent>
com.alibaba.nacos.plugin.auth.impl.configuration.AuthConfigs
Auth related configurations.
- 从以下版本开始:
- 1.2.0
- 作者:
- nkorange, mai.jh
-
字段概要
字段修饰符和类型字段说明private booleanWhether server auth enabled.private Map<String, Properties> private static Booleanprivate booleanWhether console auth enabled.private booleanprivate static final org.slf4j.Loggerprivate StringWhich auth system is in use.private static final Stringprivate Stringprivate String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getAuthPluginProperties(String authType) booleanserver auth function is open.booleanWhether permission information can be cached.booleanconsole auth function is open.booleanvoidonEvent(ServerConfigChangeEvent event) private voidstatic voidsetCachingEnabled(boolean cachingEnabled) voidsetHasGlobalAdminRole(boolean hasGlobalAdminRole) voidvalidate()Validate auth config.从类继承的方法 com.alibaba.nacos.common.notify.listener.Subscriber
executor, ignoreExpireEvent, scopeMatches
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PREFIX
- 另请参阅:
-
cachingEnabled
-
authEnabled
@Value("${nacos.core.auth.enabled:false}") private boolean authEnabledWhether server auth enabled. -
consoleAuthEnabled
@Value("${nacos.core.auth.console.enabled:true}") private boolean consoleAuthEnabledWhether console auth enabled. -
nacosAuthSystemType
Which auth system is in use. -
serverIdentityKey
-
serverIdentityValue
-
hasGlobalAdminRole
private boolean hasGlobalAdminRole -
authPluginProperties
-
-
构造器详细资料
-
AuthConfigs
public AuthConfigs()
-
-
方法详细资料
-
validate
@PostConstruct public void validate() throws com.alibaba.nacos.api.exception.NacosExceptionValidate 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
-
getServerIdentityKey
-
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
-
setCachingEnabled
public static void setCachingEnabled(boolean cachingEnabled) -
onEvent
- 指定者:
onEvent在类中Subscriber<ServerConfigChangeEvent>
-
subscribeType
- 指定者:
subscribeType在类中Subscriber<ServerConfigChangeEvent>
-