Class AbstractSaslMechanism
- java.lang.Object
- 
- org.apache.activemq.transport.amqp.sasl.AbstractSaslMechanism
 
- 
- All Implemented Interfaces:
- SaslMechanism
 - Direct Known Subclasses:
- AnonymousMechanism,- PlainMechanism
 
 public abstract class AbstractSaslMechanism extends Object implements SaslMechanism Base class for SASL Mechanisms that provides common functionality.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractSaslMechanism()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFailureReason()StringgetPassword()StringgetUsername()booleanisFailed()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.activemq.transport.amqp.sasl.SaslMechanismgetMechanismName, processSaslStep
 
- 
 
- 
- 
- 
Method Detail- 
getUsernamepublic String getUsername() - Specified by:
- getUsernamein interface- SaslMechanism
- Returns:
- the User Name extracted from the SASL echange or null if none.
 
 - 
getPasswordpublic String getPassword() - Specified by:
- getPasswordin interface- SaslMechanism
- Returns:
- the Password extracted from the SASL echange or null if none.
 
 - 
isFailedpublic boolean isFailed() - Specified by:
- isFailedin interface- SaslMechanism
- Returns:
- true if the SASL processing failed during a step.
 
 - 
getFailureReasonpublic String getFailureReason() - Specified by:
- getFailureReasonin interface- SaslMechanism
- Returns:
- a failure error to explain why the mechanism failed.
 
 
- 
 
-