public interface ServerAuthHandler
Modifier and Type | Interface and Description |
---|---|
static interface |
ServerAuthHandler.ServerAuthSender
Interface for a server implementations to send back authentication messages
back to the client.
|
Modifier and Type | Field and Description |
---|---|
static ServerAuthHandler |
NO_OP
An auth handler that does nothing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(ServerAuthHandler.ServerAuthSender outgoing,
Iterator<byte[]> incoming)
Handle the initial handshake with the client.
|
Optional<String> |
isValid(byte[] token)
Validate the client token provided on each call.
|
static final ServerAuthHandler NO_OP
Optional<String> isValid(byte[] token)
boolean authenticate(ServerAuthHandler.ServerAuthSender outgoing, Iterator<byte[]> incoming)
outgoing
- A writer to send messages to the client.incoming
- An iterator of messages from the client.Copyright © 2023 The Apache Software Foundation. All rights reserved.