@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class OAUTHBEARERBindRequestProperties extends java.lang.Object implements java.io.Serializable
OAUTHBEARERBindRequest
,
Serialized FormConstructor and Description |
---|
OAUTHBEARERBindRequestProperties(OAUTHBEARERBindRequest bindRequest)
Creates a new set of OAUTHBEARER bind request properties that is a copy of
the properties used for the provided bind request.
|
OAUTHBEARERBindRequestProperties(OAUTHBEARERBindRequestProperties properties)
Creates a new set of OAUTHBEARER bind request properties that is a copy of
the provided set of properties.
|
OAUTHBEARERBindRequestProperties(java.lang.String accessToken)
Creates a new set of OAUTHBEARER bind request properties with the provided
access token.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyValuePair(java.lang.String key,
java.lang.String value)
Adds an item to the set of additional key-value pairs that should be
included in the bind request.
|
void |
clearAdditionalKeyValuePairs()
Clears the set of additional key-value pairs.
|
java.lang.String |
getAccessToken()
Retrieves the access token to include in the bind request.
|
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalKeyValuePairs()
Retrieves an unmodifiable map of additional key-value pairs that should be
included in the bind request.
|
java.lang.String |
getAuthorizationID()
Retrieves the authorization ID to include in the GS2 header for the bind
request, if any.
|
java.lang.String |
getRequestMethod()
Retrieves the method to use for HTTP-based requests, if any.
|
java.lang.String |
getRequestPath()
Retrieves the path to use for HTTP-based requests, if any.
|
java.lang.String |
getRequestPostData()
Retrieves the data to submit when posting an HTTP-based request, if any.
|
java.lang.String |
getRequestQueryString()
Retrieves the query string to use for HTTP-based requests, if any.
|
java.lang.String |
getServerAddress()
Retrieves the server address to include in the bind request, if any.
|
java.lang.Integer |
getServerPort()
Retrieves the server port to include in the bind request, if any.
|
java.lang.String |
removeKeyValuePair(java.lang.String key)
Removes the specified additional key-value pair so it will not be included
in the bind request.
|
void |
setAccessToken(java.lang.String accessToken)
Specifies the access token to include in the bind request.
|
void |
setAuthorizationID(java.lang.String authorizationID)
Specifies the authorization ID to include in the GS2 header for the bind
request, if any.
|
void |
setRequestMethod(java.lang.String requestMethod)
Specifies the method to use for HTTP-based requests, if it should be
included in the bind request.
|
void |
setRequestPath(java.lang.String requestPath)
Specifies the path to use for HTTP-based requests, if it should be included
in the bind request.
|
void |
setRequestPostData(java.lang.String requestPostData)
Specifies the data to submit when posting an HTTP-based request, if it
should be included in the bind request.
|
void |
setRequestQueryString(java.lang.String requestQueryString)
Specifies the query string to use for HTTP-based requests, if it should be
included in the bind request.
|
void |
setServerAddress(java.lang.String serverAddress)
Specifies the server address to include in the bind request, if any.
|
void |
setServerPort(java.lang.Integer serverPort)
Specifies the server port to include in the bind request, if any.
|
java.lang.String |
toString()
Retrieves a string representation of the OAUTHBEARER bind request
properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the OAUTHBEARER bind request properties
to the provided buffer.
|
public OAUTHBEARERBindRequestProperties(@NotNull java.lang.String accessToken)
accessToken
- The access token to include in the bind request. It
must not be null
or empty.public OAUTHBEARERBindRequestProperties(@NotNull OAUTHBEARERBindRequestProperties properties)
properties
- The set of properties to duplicate. It must not be
null
.public OAUTHBEARERBindRequestProperties(@NotNull OAUTHBEARERBindRequest bindRequest)
bindRequest
- The OAUTHBEARER bind request to use to create this set
of properties. It must not be null
.@NotNull public java.lang.String getAccessToken()
public void setAccessToken(@NotNull java.lang.String accessToken)
accessToken
- The access token to include in the bind request. It
must not be null
or empty.@Nullable public java.lang.String getAuthorizationID()
null
if no authorization ID should be
included.public void setAuthorizationID(@Nullable java.lang.String authorizationID)
authorizationID
- The authorization ID to include in the bind
request. It may be null
if no
authorization ID should be provided.@Nullable public java.lang.String getServerAddress()
null
if it should be omitted.public void setServerAddress(@Nullable java.lang.String serverAddress)
serverAddress
- The server address to include in the bind request.
It may be null
if the server address should
be omitted.@Nullable public java.lang.Integer getServerPort()
null
if it should be omitted.public void setServerPort(@Nullable java.lang.Integer serverPort)
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.@Nullable public java.lang.String getRequestMethod()
null
if it
should be omitted from the bind request.public void setRequestMethod(@Nullable java.lang.String requestMethod)
requestMethod
- The method to use for HTTP-based requests. It may
be null
if the request method should be
omitted.@Nullable public java.lang.String getRequestPath()
null
if it
should be omitted from the bind request.public void setRequestPath(@Nullable java.lang.String requestPath)
requestPath
- The path to use for HTTP-based requests. It may be
null
if the request path should be omitted.@Nullable public java.lang.String getRequestPostData()
null
if it
should be omitted from the bind request.public void setRequestPostData(@Nullable java.lang.String requestPostData)
requestPostData
- The post data for HTTP-based requests. It may be
null
if the post data should be omitted.@Nullable public java.lang.String getRequestQueryString()
null
if it should be omitted from the bind request.public void setRequestQueryString(@Nullable java.lang.String requestQueryString)
requestQueryString
- The query string to use for HTTP-based
requests. It may be null
if it should
be omitted from the bind request.@NotNull public java.util.Map<java.lang.String,java.lang.String> getAdditionalKeyValuePairs()
public void addKeyValuePair(@NotNull java.lang.String key, @NotNull java.lang.String value)
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.@Nullable public java.lang.String removeKeyValuePair(@NotNull java.lang.String key)
key
- The key to remove.null
if the specified key was not set.public void clearAdditionalKeyValuePairs()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object