Package com.rabbitmq.stream.sasl
Class PlainSaslMechanism
java.lang.Object
com.rabbitmq.stream.sasl.PlainSaslMechanism
- All Implemented Interfaces:
SaslMechanism
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name of the SASL mechanism.byte[]
handleChallenge
(byte[] challenge, CredentialsProvider credentialsProvider) Handle a challenge from the server
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PlainSaslMechanism
public PlainSaslMechanism()
-
-
Method Details
-
getName
Description copied from interface:SaslMechanism
The name of the SASL mechanism.- Specified by:
getName
in interfaceSaslMechanism
- Returns:
- the name of the SASL mechanism
-
handleChallenge
Description copied from interface:SaslMechanism
Handle a challenge from the server- Specified by:
handleChallenge
in interfaceSaslMechanism
- Parameters:
challenge
- the server challengecredentialsProvider
- the credentials to use- Returns:
- the response to the challenge
-