Package com.unboundid.ldap.sdk
Class OAUTHBEARERBindRequestProperties
java.lang.Object
com.unboundid.ldap.sdk.OAUTHBEARERBindRequestProperties
- All Implemented Interfaces:
Serializable
@Mutable
@ThreadSafety(level=NOT_THREADSAFE)
public final class OAUTHBEARERBindRequestProperties
extends Object
implements 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 Summary
ConstructorsConstructorDescriptionOAUTHBEARERBindRequestProperties(OAUTHBEARERBindRequest bindRequest) Creates a new set of OAUTHBEARER bind request properties that is a copy of the properties used for the provided bind request.Creates a new set of OAUTHBEARER bind request properties that is a copy of the provided set of properties.OAUTHBEARERBindRequestProperties(String accessToken) Creates a new set of OAUTHBEARER bind request properties with the provided access token. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyValuePair(String key, String value) Adds an item to the set of additional key-value pairs that should be included in the bind request.voidClears the set of additional key-value pairs.Retrieves the access token to include in the bind request.Retrieves an unmodifiable map of additional key-value pairs that should be included in the bind request.Retrieves the authorization ID to include in the GS2 header for the bind request, if any.Retrieves the method to use for HTTP-based requests, if any.Retrieves the path to use for HTTP-based requests, if any.Retrieves the data to submit when posting an HTTP-based request, if any.Retrieves the query string to use for HTTP-based requests, if any.Retrieves the server address to include in the bind request, if any.Retrieves the server port to include in the bind request, if any.removeKeyValuePair(String key) Removes the specified additional key-value pair so it will not be included in the bind request.voidsetAccessToken(String accessToken) Specifies the access token to include in the bind request.voidsetAuthorizationID(String authorizationID) Specifies the authorization ID to include in the GS2 header for the bind request, if any.voidsetRequestMethod(String requestMethod) Specifies the method to use for HTTP-based requests, if it should be included in the bind request.voidsetRequestPath(String requestPath) Specifies the path to use for HTTP-based requests, if it should be included in the bind request.voidsetRequestPostData(String requestPostData) Specifies the data to submit when posting an HTTP-based request, if it should be included in the bind request.voidsetRequestQueryString(String requestQueryString) Specifies the query string to use for HTTP-based requests, if it should be included in the bind request.voidsetServerAddress(String serverAddress) Specifies the server address to include in the bind request, if any.voidsetServerPort(Integer serverPort) Specifies the server port to include in the bind request, if any.toString()Retrieves a string representation of the OAUTHBEARER bind request properties.voidtoString(StringBuilder buffer) Appends a string representation of the OAUTHBEARER bind request properties to the provided buffer.
-
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 benullor 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 benull.
-
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 benull.
-
-
Method Details
-
getAccessToken
Retrieves the access token to include in the bind request.- Returns:
- The access token to include in the bind request.
-
setAccessToken
Specifies the access token to include in the bind request.- Parameters:
accessToken- The access token to include in the bind request. It must not benullor 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
nullif no authorization ID should be included.
-
setAuthorizationID
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 benullif 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
nullif it should be omitted.
-
setServerAddress
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 benullif 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
nullif it should be omitted.
-
setServerPort
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 benullif 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
nullif it should be omitted from the bind request.
-
setRequestMethod
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 benullif 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
nullif it should be omitted from the bind request.
-
setRequestPath
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 benullif 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
nullif it should be omitted from the bind request.
-
setRequestPostData
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 benullif 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
nullif it should be omitted from the bind request.
-
setRequestQueryString
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 benullif 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
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 benullor empty, and it must contain only alphabetic characters.value- The value to use for the key. It must not benull, 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
nullif 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. -
toString
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 benull.
-