Class Authorization
- java.lang.Object
-
- io.envoyproxy.envoy.service.auth.v2.Authorization
-
- All Implemented Interfaces:
com.google.protobuf.Service
- Direct Known Subclasses:
Authorization.Stub
public abstract class Authorization extends Object implements com.google.protobuf.Service
A generic interface for performing authorization check on incoming requests to a networked service.
Protobuf serviceenvoy.service.auth.v2.Authorization
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthorization.BlockingInterfacestatic interfaceAuthorization.Interfacestatic classAuthorization.Stub
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuthorization()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcallMethod(com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback<com.google.protobuf.Message> done)abstract voidcheck(com.google.protobuf.RpcController controller, CheckRequest request, com.google.protobuf.RpcCallback<CheckResponse> done)Performs authorization check based on the attributes associated with the incoming request, and returns status `OK` or not `OK`.static com.google.protobuf.Descriptors.ServiceDescriptorgetDescriptor()com.google.protobuf.Descriptors.ServiceDescriptorgetDescriptorForType()com.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)static Authorization.BlockingInterfacenewBlockingStub(com.google.protobuf.BlockingRpcChannel channel)static com.google.protobuf.BlockingServicenewReflectiveBlockingService(Authorization.BlockingInterface impl)static com.google.protobuf.ServicenewReflectiveService(Authorization.Interface impl)static Authorization.StubnewStub(com.google.protobuf.RpcChannel channel)
-
-
-
Method Detail
-
newReflectiveService
public static com.google.protobuf.Service newReflectiveService(Authorization.Interface impl)
-
newReflectiveBlockingService
public static com.google.protobuf.BlockingService newReflectiveBlockingService(Authorization.BlockingInterface impl)
-
check
public abstract void check(com.google.protobuf.RpcController controller, CheckRequest request, com.google.protobuf.RpcCallback<CheckResponse> done)Performs authorization check based on the attributes associated with the incoming request, and returns status `OK` or not `OK`.
rpc Check(.envoy.service.auth.v2.CheckRequest) returns (.envoy.service.auth.v2.CheckResponse);
-
getDescriptor
public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor()
-
getDescriptorForType
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Service
-
callMethod
public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback<com.google.protobuf.Message> done)- Specified by:
callMethodin interfacecom.google.protobuf.Service
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getRequestPrototypein interfacecom.google.protobuf.Service
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getResponsePrototypein interfacecom.google.protobuf.Service
-
newStub
public static Authorization.Stub newStub(com.google.protobuf.RpcChannel channel)
-
newBlockingStub
public static Authorization.BlockingInterface newBlockingStub(com.google.protobuf.BlockingRpcChannel channel)
-
-