@Configuration public class AuthConfigs extends Subscriber<ServerConfigChangeEvent>
| 构造器和说明 |
|---|
AuthConfigs() |
| 限定符和类型 | 方法和说明 |
|---|---|
Properties |
getAuthPluginProperties(String authType) |
String |
getNacosAuthSystemType() |
String |
getServerIdentityKey() |
String |
getServerIdentityValue() |
boolean |
isAuthEnabled()
auth function is open.
|
boolean |
isCachingEnabled()
Whether permission information can be cached.
|
boolean |
isEnableUserAgentAuthWhite() |
void |
onEvent(ServerConfigChangeEvent event) |
static void |
setCachingEnabled(boolean cachingEnabled) |
Class<? extends Event> |
subscribeType() |
void |
validate()
Validate auth config.
|
executor, ignoreExpireEvent, scopeMatches@PostConstruct public void validate() throws com.alibaba.nacos.api.exception.NacosException
com.alibaba.nacos.api.exception.NacosException - If the config is not valid.public String getNacosAuthSystemType()
public String getServerIdentityKey()
public String getServerIdentityValue()
public boolean isEnableUserAgentAuthWhite()
public boolean isAuthEnabled()
public boolean isCachingEnabled()
public Properties getAuthPluginProperties(String authType)
public static void setCachingEnabled(boolean cachingEnabled)
public void onEvent(ServerConfigChangeEvent event)
onEvent 在类中 Subscriber<ServerConfigChangeEvent>public Class<? extends Event> subscribeType()
subscribeType 在类中 Subscriber<ServerConfigChangeEvent>Copyright © 2018–2024 Alibaba Group. All rights reserved.