Class AbstractSaslMechanism
java.lang.Object
org.apache.activemq.transport.amqp.sasl.AbstractSaslMechanism
- All Implemented Interfaces:
SaslMechanism
- Direct Known Subclasses:
AnonymousMechanism,PlainMechanism
Base class for SASL Mechanisms that provides common functionality.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.transport.amqp.sasl.SaslMechanism
getMechanismName, processSaslStep
-
Field Details
-
username
-
password
-
failed
protected boolean failed -
failureReason
-
-
Constructor Details
-
AbstractSaslMechanism
public AbstractSaslMechanism()
-
-
Method Details
-
getUsername
- Specified by:
getUsernamein interfaceSaslMechanism- Returns:
- the User Name extracted from the SASL echange or null if none.
-
getPassword
- Specified by:
getPasswordin interfaceSaslMechanism- Returns:
- the Password extracted from the SASL echange or null if none.
-
isFailed
public boolean isFailed()- Specified by:
isFailedin interfaceSaslMechanism- Returns:
- true if the SASL processing failed during a step.
-
getFailureReason
- Specified by:
getFailureReasonin interfaceSaslMechanism- Returns:
- a failure error to explain why the mechanism failed.
-