Package org.apache.arrow.flight.auth2
Class ServerCallHeaderAuthMiddleware.Factory
java.lang.Object
org.apache.arrow.flight.auth2.ServerCallHeaderAuthMiddleware.Factory
- All Implemented Interfaces:
FlightServerMiddleware.Factory<ServerCallHeaderAuthMiddleware>
- Enclosing class:
- ServerCallHeaderAuthMiddleware
public static class ServerCallHeaderAuthMiddleware.Factory
extends Object
implements FlightServerMiddleware.Factory<ServerCallHeaderAuthMiddleware>
Factory for accessing ServerAuthMiddleware.
-
Constructor Summary
ConstructorsConstructorDescriptionFactory
(CallHeaderAuthenticator authHandler) Construct a factory with the given auth handler. -
Method Summary
Modifier and TypeMethodDescriptiononCallStarted
(CallInfo callInfo, CallHeaders incomingHeaders, RequestContext context) A callback for when the call starts.
-
Constructor Details
-
Factory
Construct a factory with the given auth handler.- Parameters:
authHandler
- The auth handler what will be used for authenticating requests.
-
-
Method Details
-
onCallStarted
public ServerCallHeaderAuthMiddleware onCallStarted(CallInfo callInfo, CallHeaders incomingHeaders, RequestContext context) Description copied from interface:FlightServerMiddleware.Factory
A callback for when the call starts.- Specified by:
onCallStarted
in interfaceFlightServerMiddleware.Factory<ServerCallHeaderAuthMiddleware>
- Parameters:
callInfo
- Details about the call.incomingHeaders
- A mutable set of request headers.context
- Context about the current request.
-