Package org.apache.arrow.flight.auth
Class BasicClientAuthHandler
java.lang.Object
org.apache.arrow.flight.auth.BasicClientAuthHandler
- All Implemented Interfaces:
ClientAuthHandler
A client auth handler that supports username and password.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.arrow.flight.auth.ClientAuthHandler
ClientAuthHandler.ClientAuthSender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(ClientAuthHandler.ClientAuthSender outgoing, Iterator<byte[]> incoming) Handle the initial handshake with the server.byte[]
Get the per-call authentication token.
-
Constructor Details
-
BasicClientAuthHandler
-
-
Method Details
-
authenticate
Description copied from interface:ClientAuthHandler
Handle the initial handshake with the server.- Specified by:
authenticate
in interfaceClientAuthHandler
- Parameters:
outgoing
- A channel to send data to the server.incoming
- An iterator of incoming data from the server.
-
getCallToken
public byte[] getCallToken()Description copied from interface:ClientAuthHandler
Get the per-call authentication token.- Specified by:
getCallToken
in interfaceClientAuthHandler
-