类的使用
com.alibaba.nacos.plugin.auth.api.AuthResult
使用AuthResult的程序包
-
com.alibaba.nacos.plugin.auth.api中AuthResult的使用
修饰符和类型方法说明static AuthResultAuthResult.failureResult(int errorCode, String errorMessage) Build failed result.static AuthResultAuthResult.successResult()Build success result.static AuthResultAuthResult.successResult(Object data) Build success result. -
com.alibaba.nacos.plugin.auth.spi.server中AuthResult的使用
修饰符和类型方法说明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.