public class NacosAuthPluginService extends Object implements AuthPluginService
| 限定符和类型 | 字段和说明 |
|---|---|
protected IAuthenticationManager |
authenticationManager |
| 构造器和说明 |
|---|
NacosAuthPluginService() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkNacosAuthManager() |
boolean |
enableAuth(ActionTypes action,
String type) |
String |
getAuthServiceName() |
Collection<String> |
identityNames() |
boolean |
isLoginEnabled() |
Boolean |
validateAuthority(IdentityContext identityContext,
Permission permission) |
boolean |
validateIdentity(IdentityContext identityContext,
Resource resource) |
protected IAuthenticationManager authenticationManager
public Collection<String> identityNames()
identityNames 在接口中 AuthPluginServicepublic boolean enableAuth(ActionTypes action, String type)
enableAuth 在接口中 AuthPluginServicepublic boolean validateIdentity(IdentityContext identityContext, Resource resource) throws AccessException
validateIdentity 在接口中 AuthPluginServiceAccessExceptionpublic Boolean validateAuthority(IdentityContext identityContext, Permission permission) throws AccessException
validateAuthority 在接口中 AuthPluginServiceAccessExceptionpublic String getAuthServiceName()
getAuthServiceName 在接口中 AuthPluginServicepublic boolean isLoginEnabled()
isLoginEnabled 在接口中 AuthPluginServiceprotected void checkNacosAuthManager()
Copyright © 2018–2023 Alibaba Group. All rights reserved.