Package com.rabbitmq.client.impl
Class PlainMechanism
java.lang.Object
com.rabbitmq.client.impl.PlainMechanism
- All Implemented Interfaces:
SaslMechanism
The PLAIN auth mechanism
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name of this mechanism (e.g.handleChallenge
(LongString challenge, String username, String password) Handle one round of challenge-response
-
Constructor Details
-
PlainMechanism
public PlainMechanism()
-
-
Method Details
-
getName
Description copied from interface:SaslMechanism
The name of this mechanism (e.g. PLAIN)- Specified by:
getName
in interfaceSaslMechanism
- Returns:
- the name
-
handleChallenge
Description copied from interface:SaslMechanism
Handle one round of challenge-response- Specified by:
handleChallenge
in interfaceSaslMechanism
- Parameters:
challenge
- the challenge this round, or null on first round.username
- name of userpassword
- for username- Returns:
- response
-