Class SASLMechanismInfo

java.lang.Object
com.unboundid.util.SASLMechanismInfo

This class provides a data structure which holds information about a SASL mechanism supported for use with the SASLUtils class.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SASLMechanismInfo(String name, String description, boolean acceptsPassword, boolean requiresPassword, SASLOption... options)
    Creates a new SASL mechanism info object with the provided information.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether the SASL mechanism accepts a password for authentication processing.
    Retrieves a description for the SASL mechanism.
    Retrieves the name of the SASL mechanism.
    Retrieves a list of the options that may be used with the SASL mechanism.
    boolean
    Indicates whether the SASL mechanism requires a password for authentication processing.
    Retrieves a string representation of this SASL mechanism info object.
    void
    Appends a string representation of this SASL mechanism info object to the provided buffer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SASLMechanismInfo

      public SASLMechanismInfo(@NotNull String name, @NotNull 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 Details

    • getName

      Retrieves the name of the SASL mechanism.
      Returns:
      The name of the SASL mechanism.
    • 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:
      true if the SASL mechanism accepts a password for authentication processing, or false if not.
    • requiresPassword

      public boolean requiresPassword()
      Indicates whether the SASL mechanism requires a password for authentication processing.
      Returns:
      true if the SASL mechanism requires a password for authentication processing, or false if not.
    • 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

      Retrieves a string representation of this SASL mechanism info object.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this SASL mechanism info object.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      Appends a string representation of this SASL mechanism info object to the provided buffer.
      Parameters:
      buffer - The buffer to which the information should be appended.