类的使用
com.alibaba.nacos.plugin.auth.api.IdentityContext
使用IdentityContext的程序包
-
com.alibaba.nacos.plugin.auth.spi.server中IdentityContext的使用
修饰符和类型方法说明AuthPluginService.validateAuthority(IdentityContext identityContext, Permission permission) Validate the identity whether has the resource authority.AuthPluginService.validateIdentity(IdentityContext identityContext, Resource resource) To validate whether the identity context from request is legal or illegal.