Package com.rabbitmq.stream.sasl
Interface SaslMechanism
- All Known Implementing Classes:
AnonymousSaslMechanism
,ExternalSaslMechanism
,PlainSaslMechanism
public interface SaslMechanism
Contract to handle SASL challenges sent by a SASL server.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name of the SASL mechanism.byte[]
handleChallenge
(byte[] challenge, CredentialsProvider credentialsProvider) Handle a challenge from the server
-
Method Details
-
getName
String getName()The name of the SASL mechanism.- Returns:
- the name of the SASL mechanism
-
handleChallenge
Handle a challenge from the server- Parameters:
challenge
- the server challengecredentialsProvider
- the credentials to use- Returns:
- the response to the challenge
-