public class BasicClientAuthHandler extends Object implements ClientAuthHandler
ClientAuthHandler.ClientAuthSender
Constructor and Description |
---|
BasicClientAuthHandler(String name,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(ClientAuthHandler.ClientAuthSender outgoing,
Iterator<byte[]> incoming)
Handle the initial handshake with the server.
|
byte[] |
getCallToken()
Get the per-call authentication token.
|
public void authenticate(ClientAuthHandler.ClientAuthSender outgoing, Iterator<byte[]> incoming)
ClientAuthHandler
authenticate
in interface ClientAuthHandler
outgoing
- A channel to send data to the server.incoming
- An iterator of incoming data from the server.public byte[] getCallToken()
ClientAuthHandler
getCallToken
in interface ClientAuthHandler
Copyright © 2023 The Apache Software Foundation. All rights reserved.