Class AnonymousMechanism
java.lang.Object
org.apache.qpid.protonj2.engine.sasl.client.AbstractMechanism
org.apache.qpid.protonj2.engine.sasl.client.AnonymousMechanism
- All Implemented Interfaces:
Mechanism
Implements the Anonymous SASL authentication mechanism.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Symbol
A singleton instance of the symbolic mechanism name.Fields inherited from class org.apache.qpid.protonj2.engine.sasl.client.AbstractMechanism
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
isApplicable
(SaslCredentialsProvider credentials) Allows the Mechanism to determine if it is a valid choice based on the configured credentials at the time of selection.Methods inherited from class org.apache.qpid.protonj2.engine.sasl.client.AbstractMechanism
getChallengeResponse, getInitialResponse, isEnabledByDefault, toString, verifyCompletion
-
Field Details
-
ANONYMOUS
A singleton instance of the symbolic mechanism name.
-
-
Constructor Details
-
AnonymousMechanism
public AnonymousMechanism()
-
-
Method Details
-
getName
- Returns:
- the well known name of this SASL mechanism.
-
isApplicable
Description copied from interface:Mechanism
Allows the Mechanism to determine if it is a valid choice based on the configured credentials at the time of selection.- Parameters:
credentials
- the login credentials available at the time of mechanism selection.- Returns:
- true if the mechanism can be used with the provided credentials
-