public class

CRDemoMechanism

extends Object
implements SaslMechanism
java.lang.Object
   ↳ com.rabbitmq.client.impl.CRDemoMechanism

Class Overview

Provides equivalent security to PLAIN but demos use of Connection.Secure(Ok) START-OK: Username SECURE: "Please tell me your password" SECURE-OK: Password

Summary

Nested Classes
class CRDemoMechanism.CRDemoSaslConfig  
Public Constructors
CRDemoMechanism()
Public Methods
String getName()
The name of this mechanism (e.g.
LongString handleChallenge(LongString challenge, String username, String password)
Handle one round of challenge-response
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.rabbitmq.client.SaslMechanism

Public Constructors

public CRDemoMechanism ()

Public Methods

public String getName ()

The name of this mechanism (e.g. PLAIN)

public LongString handleChallenge (LongString challenge, String username, String password)

Handle one round of challenge-response

Parameters
challenge the challenge this round, or null on first round.
username name of user
password for username
Returns
  • response