Interface ServiceAuthWiring<ServiceImplBase>

All Known Subinterfaces:
ApplicationServiceAuthWiring, ConfigServiceAuthWiring, ConsoleServiceAuthWiring, HealthAuthWiring, ObjectServiceAuthWiring, SessionServiceAuthWiring, StorageServiceAuthWiring
All Known Implementing Classes:
ApplicationServiceAuthWiring.AllowAll, ApplicationServiceAuthWiring.DenyAll, ApplicationServiceAuthWiring.TestUseOnly, ConfigServiceAuthWiring.AllowAll, ConfigServiceAuthWiring.DenyAll, ConfigServiceAuthWiring.TestUseOnly, ConsoleServiceAuthWiring.AllowAll, ConsoleServiceAuthWiring.DenyAll, ConsoleServiceAuthWiring.TestUseOnly, HealthAuthWiring.AllowAll, HealthAuthWiring.DenyAll, HealthAuthWiring.TestUseOnly, ObjectServiceAuthWiring.AllowAll, ObjectServiceAuthWiring.DenyAll, ObjectServiceAuthWiring.TestUseOnly, SessionServiceAuthWiring.AllowAll, SessionServiceAuthWiring.DenyAll, SessionServiceAuthWiring.TestUseOnly, StorageServiceAuthWiring.AllowAll, StorageServiceAuthWiring.DenyAll, StorageServiceAuthWiring.TestUseOnly

public interface ServiceAuthWiring<ServiceImplBase>
This class is a marker interface for the generated service auth wiring classes.
  • Method Details

    • operationNotAllowed

      static void operationNotAllowed()
    • operationNotAllowed

      static void operationNotAllowed(String reason)
    • intercept

      io.grpc.ServerServiceDefinition intercept(ServiceImplBase delegate)
      Intercepts all public methods on the service implementation base, and wraps them with auth checks.
      Parameters:
      delegate - the real service implementation
      Returns:
      a new service definition with wrapped auth checks
    • intercept

      static <ReqT, RespT> io.grpc.ServerMethodDefinition<ReqT,RespT> intercept(io.grpc.ServerServiceDefinition service, String methodName, ServiceAuthWiring.CallStartedCallback callStartedCallback, ServiceAuthWiring.MessageReceivedCallback<ReqT> messageReceivedCallback)
      Wraps a given service method implementation with an auth check.

      Parameters:
      service - the service implementation
      methodName - the method name
      callStartedCallback - the callback to invoke when the call starts
      messageReceivedCallback - the callback to invoke when a message is received
      Returns:
      the wrapped server method definition
      ApiNote:
      Unary or Server-Streaming methods will not callback on call started as every request is required to have a request message.