Package com.rabbitmq.client.impl
Class PlainMechanism
- java.lang.Object
 - 
- com.rabbitmq.client.impl.PlainMechanism
 
 
- 
- All Implemented Interfaces:
 SaslMechanism
public class PlainMechanism extends Object implements SaslMechanism
The PLAIN auth mechanism 
- 
- 
Constructor Summary
Constructors Constructor Description PlainMechanism() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()The name of this mechanism (e.g.LongStringhandleChallenge(LongString challenge, String username, String password)Handle one round of challenge-response 
 - 
 
- 
- 
Method Detail
- 
getName
public String getName()
Description copied from interface:SaslMechanismThe name of this mechanism (e.g. PLAIN)- Specified by:
 getNamein interfaceSaslMechanism- Returns:
 - the name
 
 
- 
handleChallenge
public LongString handleChallenge(LongString challenge, String username, String password)
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
 
 
 - 
 
 -