Class OAUTHBEARERBindRequestProperties

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

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

    • OAUTHBEARERBindRequestProperties

      Creates a new set of OAUTHBEARER bind request properties with the provided access token.
      Parameters:
      accessToken - The access token to include in the bind request. It must not be null or empty.
    • OAUTHBEARERBindRequestProperties

      Creates a new set of OAUTHBEARER bind request properties that is a copy of the provided set of properties.
      Parameters:
      properties - The set of properties to duplicate. It must not be null.
    • OAUTHBEARERBindRequestProperties

      Creates a new set of OAUTHBEARER bind request properties that is a copy of the properties used for the provided bind request.
      Parameters:
      bindRequest - The OAUTHBEARER bind request to use to create this set of properties. It must not be null.
  • Method Details

    • getAccessToken

      Retrieves the access token to include in the bind request.
      Returns:
      The access token to include in the bind request.
    • setAccessToken

      public void setAccessToken(@NotNull String accessToken)
      Specifies the access token to include in the bind request.
      Parameters:
      accessToken - The access token to include in the bind request. It must not be null or empty.
    • getAuthorizationID

      Retrieves the authorization ID to include in the GS2 header for the bind request, if any.
      Returns:
      The authorization ID to include in the GS2 header for the bind request, or null if no authorization ID should be included.
    • setAuthorizationID

      public void setAuthorizationID(@Nullable String authorizationID)
      Specifies the authorization ID to include in the GS2 header for the bind request, if any.
      Parameters:
      authorizationID - The authorization ID to include in the bind request. It may be null if no authorization ID should be provided.
    • getServerAddress

      Retrieves the server address to include in the bind request, if any.
      Returns:
      The server address to include in the bind request, or null if it should be omitted.
    • setServerAddress

      public void setServerAddress(@Nullable String serverAddress)
      Specifies the server address to include in the bind request, if any.
      Parameters:
      serverAddress - The server address to include in the bind request. It may be null if the server address should be omitted.
    • getServerPort

      Retrieves the server port to include in the bind request, if any.
      Returns:
      The server port to include in the bind request, or null if it should be omitted.
    • setServerPort

      public void setServerPort(@Nullable Integer serverPort)
      Specifies the server port to include in the bind request, if any.
      Parameters:
      serverPort - The server port to include in the bind request. It may be null if the server port should be omitted. If it is non-null, then the value must be between 1 and 65535, inclusive.
    • getRequestMethod

      Retrieves the method to use for HTTP-based requests, if any.
      Returns:
      The method to use for HTTP-based requests, or null if it should be omitted from the bind request.
    • setRequestMethod

      public void setRequestMethod(@Nullable String requestMethod)
      Specifies the method to use for HTTP-based requests, if it should be included in the bind request.
      Parameters:
      requestMethod - The method to use for HTTP-based requests. It may be null if the request method should be omitted.
    • getRequestPath

      Retrieves the path to use for HTTP-based requests, if any.
      Returns:
      The path to use for HTTP-based requests, or null if it should be omitted from the bind request.
    • setRequestPath

      public void setRequestPath(@Nullable String requestPath)
      Specifies the path to use for HTTP-based requests, if it should be included in the bind request.
      Parameters:
      requestPath - The path to use for HTTP-based requests. It may be null if the request path should be omitted.
    • getRequestPostData

      Retrieves the data to submit when posting an HTTP-based request, if any.
      Returns:
      The post data for HTTP-based requests, or null if it should be omitted from the bind request.
    • setRequestPostData

      public void setRequestPostData(@Nullable String requestPostData)
      Specifies the data to submit when posting an HTTP-based request, if it should be included in the bind request.
      Parameters:
      requestPostData - The post data for HTTP-based requests. It may be null if the post data should be omitted.
    • getRequestQueryString

      Retrieves the query string to use for HTTP-based requests, if any.
      Returns:
      The query string to use for HTTP-based requests, or null if it should be omitted from the bind request.
    • setRequestQueryString

      public void setRequestQueryString(@Nullable String requestQueryString)
      Specifies the query string to use for HTTP-based requests, if it should be included in the bind request.
      Parameters:
      requestQueryString - The query string to use for HTTP-based requests. It may be null if it should be omitted from the bind request.
    • getAdditionalKeyValuePairs

      Retrieves an unmodifiable map of additional key-value pairs that should be included in the bind request.
      Returns:
      An unmodifiable map of additional key-value pairs that should be included in the bind request.
    • addKeyValuePair

      public void addKeyValuePair(@NotNull String key, @NotNull String value)
      Adds an item to the set of additional key-value pairs that should be included in the bind request. If an item is already defined with the provided key, then its value will be replaced.
      Parameters:
      key - The key to use. It must not be null or empty, and it must contain only alphabetic characters.
      value - The value to use for the key. It must not be null, and it must not contain the 0x00 or 0x01 characters.
    • removeKeyValuePair

      Removes the specified additional key-value pair so it will not be included in the bind request.
      Parameters:
      key - The key to remove.
      Returns:
      The value that was associated with the key. It may be null if the specified key was not set.
    • clearAdditionalKeyValuePairs

      Clears the set of additional key-value pairs.
    • toString

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

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