Package com.unboundid.util
Class SASLOption
java.lang.Object
com.unboundid.util.SASLOption
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class SASLOption
extends Object
implements Serializable
This class provides a data structure that holds information about an option
that can be used in the course of SASL authentication.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSASLOption(String name, String description, boolean isRequired, boolean isMultiValued) Creates a new SASL option with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a description for this SASL option.getName()Retrieves the name for this SASL option.booleanIndicates whether this SASL option may be provided multiple times when trying to bind with the associated mechanism.booleanIndicates whether this SASL option must be provided when attempting to bind with the associated mechanism.toString()Retrieves a string representation for this SASL option.voidtoString(StringBuilder buffer) Appends a string representation of this SASL option to the provided buffer.
-
Constructor Details
-
SASLOption
public SASLOption(@NotNull String name, @NotNull String description, boolean isRequired, boolean isMultiValued) Creates a new SASL option with the provided information.- Parameters:
name- The name for this SASL option.description- A description for this SASL option.isRequired- Indicates whether this option is required for use in conjunction with the associated SASL mechanism.isMultiValued- Indicates whether this option is allowed to be specified multiple times for a single bind request.
-
-
Method Details
-
getName
Retrieves the name for this SASL option.- Returns:
- The name for this SASL option.
-
getDescription
Retrieves a description for this SASL option.- Returns:
- A description for this SASL option.
-
isRequired
Indicates whether this SASL option must be provided when attempting to bind with the associated mechanism.- Returns:
trueif this SASL option must be specified when trying to bind with the associated mechanism, orfalseif not.
-
isMultiValued
Indicates whether this SASL option may be provided multiple times when trying to bind with the associated mechanism.- Returns:
trueif this SASL option may be provided multiple times when trying to bind with the associated mechanism, orfalseif not.
-
toString
Retrieves a string representation for this SASL option. -
toString
Appends a string representation of this SASL option to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-