Package org.apache.arrow.flight.auth
Class ServerAuthWrapper
java.lang.Object
org.apache.arrow.flight.auth.ServerAuthWrapper
Contains utility methods for integrating authorization into a GRPC stream.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 handlerresponseObserver
- Observer for handshake responseexecutors
- ExecutorService- Returns:
- AuthObserver
-