Interface HealthAuthWiring

All Superinterfaces:
ServiceAuthWiring<io.grpc.health.v1.HealthGrpc.HealthImplBase>
All Known Implementing Classes:
HealthAuthWiring.AllowAll, HealthAuthWiring.DenyAll, HealthAuthWiring.TestUseOnly

public interface HealthAuthWiring extends ServiceAuthWiring<io.grpc.health.v1.HealthGrpc.HealthImplBase>
This interface provides type-safe authorization hooks for HealthGrpc.
  • Method Details

    • intercept

      default io.grpc.ServerServiceDefinition intercept(io.grpc.health.v1.HealthGrpc.HealthImplBase delegate)
      Wrap the real implementation with authorization checks.
      Specified by:
      intercept in interface ServiceAuthWiring<io.grpc.health.v1.HealthGrpc.HealthImplBase>
      Parameters:
      delegate - the real service implementation
      Returns:
      the wrapped service implementation
    • onMessageReceivedCheck

      void onMessageReceivedCheck(AuthContext authContext, io.grpc.health.v1.HealthCheckRequest request)
      Authorize a request to Check.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke Check
    • onMessageReceivedWatch

      void onMessageReceivedWatch(AuthContext authContext, io.grpc.health.v1.HealthCheckRequest request)
      Authorize a request to Watch.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke Watch