Package com.rabbitmq.stream.sasl
Class AnonymousSaslMechanism
- java.lang.Object
-
- com.rabbitmq.stream.sasl.AnonymousSaslMechanism
-
- All Implemented Interfaces:
SaslMechanism
public final class AnonymousSaslMechanism extends Object implements SaslMechanism
TheANONYMOUSSaslMechanism.
-
-
Field Summary
Fields Modifier and Type Field Description static SaslMechanismINSTANCE
-
Constructor Summary
Constructors Constructor Description AnonymousSaslMechanism()
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Field Detail
-
INSTANCE
public static final SaslMechanism INSTANCE
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SaslMechanismThe name of the SASL mechanism.- Specified by:
getNamein interfaceSaslMechanism- Returns:
- the name of the SASL mechanism
-
handleChallenge
public byte[] handleChallenge(byte[] challenge, CredentialsProvider credentialsProvider)Description copied from interface:SaslMechanismHandle a challenge from the server- Specified by:
handleChallengein interfaceSaslMechanism- Parameters:
challenge- the server challengecredentialsProvider- the credentials to use- Returns:
- the response to the challenge
-
-