Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.auth2
Class ServerCallHeaderAuthMiddleware
java.lang.Object
org.apache.arrow.flight.auth2.ServerCallHeaderAuthMiddleware
- All Implemented Interfaces:
FlightServerMiddleware
Middleware that's used to validate credentials during the handshake and verify the bearer token
in subsequent requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory for accessing ServerAuthMiddleware.Nested classes/interfaces inherited from interface org.apache.arrow.flight.FlightServerMiddleware
FlightServerMiddleware.Key<T extends FlightServerMiddleware> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidonBeforeSendingHeaders(CallHeaders outgoingHeaders) Callback for when the underlying transport is about to send response headers.voidonCallCompleted(CallStatus status) Callback for when the underlying transport has completed a call.voidonCallErrored(Throwable err) Callback for when an RPC method implementation throws an uncaught exception.
-
Constructor Details
-
ServerCallHeaderAuthMiddleware
-
-
Method Details
-
onBeforeSendingHeaders
Description copied from interface:FlightServerMiddlewareCallback for when the underlying transport is about to send response headers.- Specified by:
onBeforeSendingHeadersin interfaceFlightServerMiddleware- Parameters:
outgoingHeaders- A mutable set of response headers. These can be manipulated to send different headers to the client.
-
onCallCompleted
Description copied from interface:FlightServerMiddlewareCallback for when the underlying transport has completed a call.- Specified by:
onCallCompletedin interfaceFlightServerMiddleware- Parameters:
status- Whether the call completed successfully or not.
-
onCallErrored
Description copied from interface:FlightServerMiddlewareCallback for when an RPC method implementation throws an uncaught exception.May be called multiple times, and may be called before or after
FlightServerMiddleware.onCallCompleted(CallStatus). Generally, an uncaught exception will end the call with a errorCallStatus, and will be reported toFlightServerMiddleware.onCallCompleted(CallStatus), but not necessarily this method.- Specified by:
onCallErroredin interfaceFlightServerMiddleware- Parameters:
err- The exception that was thrown.
-