Package com.unboundid.util
Class SASLMechanismInfo
- java.lang.Object
-
- com.unboundid.util.SASLMechanismInfo
-
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SASLMechanismInfo extends java.lang.Object
This class provides a data structure which holds information about a SASL mechanism supported for use with theSASLUtilsclass.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsPassword()Indicates whether the SASL mechanism accepts a password for authentication processing.java.lang.StringgetDescription()Retrieves a description for the SASL mechanism.java.lang.StringgetName()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.booleanrequiresPassword()Indicates whether the SASL mechanism requires a password for authentication processing.java.lang.StringtoString()Retrieves a string representation of this SASL mechanism info object.voidtoString(java.lang.StringBuilder buffer)Appends a string representation of this SASL mechanism info object to the provided buffer.
-
-
-
Constructor Detail
-
SASLMechanismInfo
public SASLMechanismInfo(@NotNull java.lang.String name, @NotNull java.lang.String description, boolean acceptsPassword, boolean requiresPassword, @Nullable SASLOption... options)
Creates a new SASL mechanism info object with the provided information.- Parameters:
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.
-
-
Method Detail
-
getName
@NotNull public java.lang.String getName()
Retrieves the name of the SASL mechanism.- Returns:
- The name of the SASL mechanism.
-
getDescription
@NotNull public java.lang.String getDescription()
Retrieves a description for the SASL mechanism.- Returns:
- A description for the SASL mechanism.
-
acceptsPassword
public boolean acceptsPassword()
Indicates whether the SASL mechanism accepts a password for authentication processing.- Returns:
trueif the SASL mechanism accepts a password for authentication processing, orfalseif not.
-
requiresPassword
public boolean requiresPassword()
Indicates whether the SASL mechanism requires a password for authentication processing.- Returns:
trueif the SASL mechanism requires a password for authentication processing, orfalseif not.
-
getOptions
@NotNull public java.util.List<SASLOption> getOptions()
Retrieves a list of the options that may be used with the SASL mechanism.- Returns:
- A list of the options that may be used with the SASL mechanism, or an empty list if there are no supported SASL options for the associated mechanism.
-
toString
@NotNull public java.lang.String toString()
Retrieves a string representation of this SASL mechanism info object.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this SASL mechanism info object.
-
-