Class ServerAuthWrapper

java.lang.Object
org.apache.arrow.flight.auth.ServerAuthWrapper

public class ServerAuthWrapper extends Object
Contains utility methods for integrating authorization into a GRPC stream.
  • Constructor Details

    • ServerAuthWrapper

      public ServerAuthWrapper()
  • Method Details

    • wrapHandshake

      public static io.grpc.stub.StreamObserver<Flight.HandshakeRequest> wrapHandshake(ServerAuthHandler authHandler, io.grpc.stub.StreamObserver<Flight.HandshakeResponse> responseObserver, ExecutorService executors)
      Wrap the auth handler for handshake purposes.
      Parameters:
      authHandler - Authentication handler
      responseObserver - Observer for handshake response
      executors - ExecutorService
      Returns:
      AuthObserver