Package org.apache.arrow.flight.auth
Interface ServerAuthHandler
- All Known Implementing Classes:
BasicServerAuthHandler
Deprecated.
Interface for Server side authentication handlers.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated.Interface for a server implementations to send back authentication messages back to the client. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ServerAuthHandler
Deprecated.An auth handler that does nothing. -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(ServerAuthHandler.ServerAuthSender outgoing, Iterator<byte[]> incoming) Deprecated.Handle the initial handshake with the client.isValid
(byte[] token) Deprecated.Validate the client token provided on each call.
-
Field Details
-
NO_OP
Deprecated.An auth handler that does nothing.
-
-
Method Details
-
isValid
Deprecated.Validate the client token provided on each call.- Returns:
- An empty optional if the client is not authenticated; the peer identity otherwise (may be the empty string).
-
authenticate
Deprecated.Handle the initial handshake with the client.- Parameters:
outgoing
- A writer to send messages to the client.incoming
- An iterator of messages from the client.- Returns:
- true if client is authenticated, false otherwise.
-
FlightServer.Builder.headerAuthenticator(CallHeaderAuthenticator)
andCallHeaderAuthenticator
.