类 NacosAuthPluginService
java.lang.Object
com.alibaba.nacos.plugin.auth.impl.NacosAuthPluginService
- 所有已实现的接口:
AuthPluginService
- 直接已知子类:
LdapAuthPluginService
Nacos default auth plugin service implementation.
- 作者:
- xiweng.yy
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidbooleanenableAuth(ActionTypes action, String type) booleanOnly auth enabled and not global admin role existed.booleanprivate StringresolveToken(IdentityContext identityContext) validateAuthority(IdentityContext identityContext, Permission permission) validateIdentity(IdentityContext identityContext, Resource resource) private NacosUservalidateUser(IdentityContext identityContext)
-
字段详细资料
-
IDENTITY_NAMES
-
authenticationManager
-
-
构造器详细资料
-
NacosAuthPluginService
public NacosAuthPluginService()
-
-
方法详细资料
-
identityNames
- 指定者:
identityNames在接口中AuthPluginService
-
enableAuth
- 指定者:
enableAuth在接口中AuthPluginService
-
validateIdentity
- 指定者:
validateIdentity在接口中AuthPluginService
-
validateUser
- 抛出:
AccessException
-
resolveToken
-
validateAuthority
- 指定者:
validateAuthority在接口中AuthPluginService
-
getAuthServiceName
- 指定者:
getAuthServiceName在接口中AuthPluginService
-
isLoginEnabled
public boolean isLoginEnabled()- 指定者:
isLoginEnabled在接口中AuthPluginService
-
isAdminRequest
public boolean isAdminRequest()Only auth enabled and not global admin role existed.- 指定者:
isAdminRequest在接口中AuthPluginService- 返回:
truewhen auth enabled and not global admin role existed, otherwisefalse
-
checkNacosAuthManager
protected void checkNacosAuthManager()
-