Class DIGESTMD5BindRequestProperties

java.lang.Object
com.unboundid.ldap.sdk.DIGESTMD5BindRequestProperties
All Implemented Interfaces:
Serializable

This class provides a data structure that may be used to hold a number of properties that may be used during processing for a SASL DIGEST-MD5 bind operation.
See Also:
  • Constructor Details

    • DIGESTMD5BindRequestProperties

      public DIGESTMD5BindRequestProperties(@NotNull String authenticationID, @Nullable String password)
      Creates a new set of DIGEST-MD5 bind request properties with the provided information.
      Parameters:
      authenticationID - The authentication ID for the DIGEST-MD5 bind request. It must not be null.
      password - The password for the DIGEST-MD5 bind request. It may be null if anonymous authentication is to be performed.
    • DIGESTMD5BindRequestProperties

      public DIGESTMD5BindRequestProperties(@NotNull String authenticationID, @Nullable byte[] password)
      Creates a new set of DIGEST-MD5 bind request properties with the provided information.
      Parameters:
      authenticationID - The authentication ID for the DIGEST-MD5 bind request. It must not be null.
      password - The password for the DIGEST-MD5 bind request. It may be null if anonymous authentication is to be performed.
    • DIGESTMD5BindRequestProperties

      Creates a new set of DIGEST-MD5 bind request properties with the provided information.
      Parameters:
      authenticationID - The authentication ID for the DIGEST-MD5 bind request. It must not be null.
      password - The password for the DIGEST-MD5 bind request. It may be null if anonymous authentication is to be performed.
  • Method Details

    • getAuthenticationID

      Retrieves the authentication ID for the DIGEST-MD5 bind request.
      Returns:
      The authentication ID for the DIGEST-MD5 bind request.
    • setAuthenticationID

      public void setAuthenticationID(@NotNull String authenticationID)
      Specifies the authentication ID for the DIGEST-MD5 bind request. It must not be null, and should generally start with "dn:" followed by the full DN for the target user (or just "dn:" for anonymous), or "u:" followed by the username for the target user.
      Parameters:
      authenticationID - The authentication ID for the DIGEST-MD5 bind request. It must not be null.
    • getAuthorizationID

      Retrieves the authorization ID for the DIGEST-MD5 bind request.
      Returns:
      The authorization ID for the DIGEST-MD5 bind request, or null if no authorization ID should be included in the bind request.
    • setAuthorizationID

      public void setAuthorizationID(@Nullable String authorizationID)
      Specifies the authorization ID for the DIGEST-MD5 bind request. It may be null if not alternate authorization identity is needed. If provided, the authorization ID should generally start with "dn:" followed by the full DN for the target user (or just "dn:" for anonymous), or "u:" followed by the username for the target user.
      Parameters:
      authorizationID - The authorization ID for the DIGEST-MD5 bind request.
    • getPassword

      Retrieves the password for the DIGEST-MD5 bind request.
      Returns:
      The password for the DIGEST-MD5 bind request.
    • setPassword

      public void setPassword(@NotNull String password)
      Specifies the password for the DIGEST-MD5 bind request. It may be null or empty when authenticating as the anonymous user.
      Parameters:
      password - The password for the DIGEST-MD5 bind request. It may be null or empty when authenticating as the anonymous user.
    • setPassword

      public void setPassword(@NotNull byte[] password)
      Specifies the password for the DIGEST-MD5 bind request. It may be null or empty when authenticating as the anonymous user.
      Parameters:
      password - The password for the DIGEST-MD5 bind request. It may be null or empty when authenticating as the anonymous user.
    • setPassword

      public void setPassword(@Nullable ASN1OctetString password)
      Specifies the password for the DIGEST-MD5 bind request. It may be null or empty when authenticating as the anonymous user.
      Parameters:
      password - The password for the DIGEST-MD5 bind request. It may be null or empty when authenticating as the anonymous user.
    • getRealm

      Retrieves the realm for the DIGEST-MD5 bind request.
      Returns:
      The realm for the DIGEST-MD5 bind request, or null if no realm should be included in the bind request.
    • setRealm

      public void setRealm(@Nullable String realm)
      Specifies the realm for the DIGEST-MD5 bind request. It may be null if no realm should be included in the bind request.
      Parameters:
      realm - The realm for the DIGEST-MD5 bind request. It may be null if no realm should be included in the bind request.
    • getAllowedQoP

      Retrieves the list of allowed qualities of protection that may be used for communication that occurs on the connection after the authentication has completed, in order from most preferred to least preferred.
      Returns:
      The list of allowed qualities of protection that may be used for communication that occurs on the connection after the authentication has completed, in order from most preferred to least preferred.
    • setAllowedQoP

      Specifies the list of allowed qualities of protection that may be used for communication that occurs on the connection after the authentication has completed, in order from most preferred to least preferred.
      Parameters:
      allowedQoP - The list of allowed qualities of protection that may be used for communication that occurs on the connection after the authentication has completed, in order from most preferred to least preferred. If this is null or empty, then a list containing only the SASLQualityOfProtection.AUTH quality of protection value will be used.
    • setAllowedQoP

      public void setAllowedQoP(@Nullable SASLQualityOfProtection... allowedQoP)
      Specifies the list of allowed qualities of protection that may be used for communication that occurs on the connection after the authentication has completed, in order from most preferred to least preferred.
      Parameters:
      allowedQoP - The list of allowed qualities of protection that may be used for communication that occurs on the connection after the authentication has completed, in order from most preferred to least preferred. If this is null or empty, then a list containing only the SASLQualityOfProtection.AUTH quality of protection value will be used.
    • toString

      Retrieves a string representation of the DIGEST-MD5 bind request properties.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the DIGEST-MD5 bind request properties.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      Appends a string representation of the DIGEST-MD5 bind request properties to the provided buffer.
      Parameters:
      buffer - The buffer to which the information should be appended.