@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SASLMechanismInfo extends java.lang.Object
SASLUtils
class.Constructor and Description |
---|
SASLMechanismInfo(java.lang.String name,
java.lang.String description,
boolean acceptsPassword,
boolean requiresPassword,
SASLOption... options)
Creates a new SASL mechanism info object with the provided information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsPassword()
Indicates whether the SASL mechanism accepts a password for authentication
processing.
|
java.lang.String |
getDescription()
Retrieves a description for the SASL mechanism.
|
java.lang.String |
getName()
Retrieves the name of the SASL mechanism.
|
java.util.List<SASLOption> |
getOptions()
Retrieves a list of the options that may be used with the SASL mechanism.
|
boolean |
requiresPassword()
Indicates whether the SASL mechanism requires a password for authentication
processing.
|
java.lang.String |
toString()
Retrieves a string representation of this SASL mechanism info object.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this SASL mechanism info object to the
provided buffer.
|
public SASLMechanismInfo(@NotNull java.lang.String name, @NotNull java.lang.String description, boolean acceptsPassword, boolean requiresPassword, @Nullable SASLOption... options)
name
- The name for the SASL mechanism.description
- A description for the SASL mechanism.acceptsPassword
- Indicates whether the SASL mechanism allows a
password to be provided.requiresPassword
- Indicates whether the SASL mechanism requires a
password to be provided.options
- The set of options that are associated with the
SASL mechanism.@NotNull public java.lang.String getName()
@NotNull public java.lang.String getDescription()
public boolean acceptsPassword()
true
if the SASL mechanism accepts a password for
authentication processing, or false
if not.public boolean requiresPassword()
true
if the SASL mechanism requires a password for
authentication processing, or false
if not.@NotNull public java.util.List<SASLOption> getOptions()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object