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