Class 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 service envoy.service.auth.v2.Authorization
    • Constructor Detail

      • Authorization

        protected Authorization()
    • Method Detail

      • newReflectiveService

        public static com.google.protobuf.Service newReflectiveService​(Authorization.Interface 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:
        getDescriptorForType in interface com.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:
        callMethod in interface com.google.protobuf.Service
      • getRequestPrototype

        public final com.google.protobuf.Message getRequestPrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getRequestPrototype in interface com.google.protobuf.Service
      • getResponsePrototype

        public final com.google.protobuf.Message getResponsePrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getResponsePrototype in interface com.google.protobuf.Service
      • newStub

        public static Authorization.Stub newStub​(com.google.protobuf.RpcChannel channel)