Package com.rabbitmq.client.impl
Class CRDemoMechanism
java.lang.Object
com.rabbitmq.client.impl.CRDemoMechanism
- All Implemented Interfaces:
SaslMechanism
Provides equivalent security to PLAIN but demos use of Connection.Secure(Ok)
START-OK: Username
SECURE: "Please tell me your password"
SECURE-OK: Password
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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
-
CRDemoMechanism
public CRDemoMechanism()
-
-
Method Details
-
getName
Description copied from interface:SaslMechanismThe name of this mechanism (e.g. PLAIN)- Specified by:
getNamein interfaceSaslMechanism- Returns:
- the name
-
handleChallenge
Description copied from interface:SaslMechanismHandle one round of challenge-response- Specified by:
handleChallengein interfaceSaslMechanism- Parameters:
challenge- the challenge this round, or null on first round.username- name of userpassword- for username- Returns:
- response
-