Class SignOptions.Builder
java.lang.Object
com.salesforce.multicloudj.sts.model.SignOptions.Builder
- Enclosing class:
- SignOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withActionInQueryString(boolean actionInQueryString) Controls whether the STS action and version are signed as URL query parameters over an empty body instead of as a form-encoded request body.withCustomHeader(String name, String value) Adds a single custom header to set on the signed request.withCustomHeaders(Map<String, String> customHeaders) Adds all supplied custom headers to set on the signed request.withExcludeContentTypeHeader(boolean excludeContentTypeHeader) Controls whether the content type header is excluded from the signed request.withExcludeRequestHashHeader(boolean excludeRequestHashHeader) Controls whether the request payload hash header is excluded from the signed request.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withCustomHeader
Adds a single custom header to set on the signed request.- Parameters:
name- header namevalue- header value- Returns:
- this builder
-
withCustomHeaders
Adds all supplied custom headers to set on the signed request.- Parameters:
customHeaders- headers to add- Returns:
- this builder
-
withExcludeRequestHashHeader
Controls whether the request payload hash header is excluded from the signed request.- Parameters:
excludeRequestHashHeader- true to exclude the request hash header- Returns:
- this builder
-
withExcludeContentTypeHeader
Controls whether the content type header is excluded from the signed request.- Parameters:
excludeContentTypeHeader- true to exclude the content type header- Returns:
- this builder
-
withActionInQueryString
Controls whether the STS action and version are signed as URL query parameters over an empty body instead of as a form-encoded request body.- Parameters:
actionInQueryString- true to sign the action and version as query parameters- Returns:
- this builder
-
build
-