com.rabbitmq.client.impl
Class PlainMechanism

java.lang.Object
  extended by com.rabbitmq.client.impl.PlainMechanism
All Implemented Interfaces:
SaslMechanism

public class PlainMechanism
extends java.lang.Object
implements SaslMechanism

The PLAIN auth mechanism


Constructor Summary
PlainMechanism()
           
 
Method Summary
 java.lang.String getName()
          The name of this mechanism (e.g.
 LongString handleChallenge(LongString challenge, ConnectionFactory factory)
          Handle one round of challenge-response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainMechanism

public PlainMechanism()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: SaslMechanism
The name of this mechanism (e.g. PLAIN)

Specified by:
getName in interface SaslMechanism
Returns:

handleChallenge

public LongString handleChallenge(LongString challenge,
                                  ConnectionFactory factory)
Description copied from interface: SaslMechanism
Handle one round of challenge-response

Specified by:
handleChallenge in interface SaslMechanism
Parameters:
challenge - the challenge this round, or null on first round.
factory - for reference to e.g. username and password.
Returns:
response