public abstract class AbstractMechanism extends Object implements Mechanism
Mechanism.PRIORITY| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
EMPTY |
| Constructor and Description |
|---|
AbstractMechanism() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Mechanism other) |
String |
getPassword()
Returns the configured password value for this Mechanism.
|
String |
getUsername()
Returns the configured user name value for this Mechanism.
|
void |
init(Map<String,String> options)
Perform any configuration initiation required by the mechanism.
|
boolean |
isEnabledByDefault()
Allows the mechanism to indicate if it is enabled by default, or only when explicitly enabled
through configuring the permitted sasl mechanisms.
|
void |
setPassword(String value)
Sets the password value for this Mechanism.
|
void |
setUsername(String value)
Sets the user name value for this Mechanism.
|
String |
toString() |
void |
verifyCompletion()
Verifies that the SASL exchange has completed successfully.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdditionalFailureInformation, getChallengeResponse, getInitialResponse, getName, getPriority, isApplicablepublic void init(Map<String,String> options)
Mechanismpublic void verifyCompletion()
throws SaslException
MechanismverifyCompletion in interface MechanismSaslException - if the outcome of the SASL exchange is not valid for this Mechanismpublic int compareTo(Mechanism other)
compareTo in interface Comparable<Mechanism>public void setUsername(String value)
MechanismsetUsername in interface Mechanismvalue - The user name given.public String getUsername()
MechanismgetUsername in interface Mechanismpublic void setPassword(String value)
MechanismsetPassword in interface Mechanismvalue - The user name given.public String getPassword()
MechanismgetPassword in interface Mechanismpublic boolean isEnabledByDefault()
MechanismisEnabledByDefault in interface MechanismCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.