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 Summary
Constructors Constructor Description AbstractSaslMechanism()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFailureReason()
String
getPassword()
String
getUsername()
boolean
isFailed()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.transport.amqp.sasl.SaslMechanism
getMechanismName, processSaslStep
-
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceSaslMechanism
- Returns:
- the User Name extracted from the SASL echange or null if none.
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceSaslMechanism
- Returns:
- the Password extracted from the SASL echange or null if none.
-
isFailed
public boolean isFailed()
- Specified by:
isFailed
in interfaceSaslMechanism
- Returns:
- true if the SASL processing failed during a step.
-
getFailureReason
public String getFailureReason()
- Specified by:
getFailureReason
in interfaceSaslMechanism
- Returns:
- a failure error to explain why the mechanism failed.
-
-