public class RestUtils extends Object
Constructor and Description |
---|
RestUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> String |
makeS3CanonicalString(String method,
String resource,
SignableRequest<T> request,
String expires)
Calculate the canonical string for a REST/HTTP request to S3 by only
including query parameters that are mentioned in SIGNED_PARAMETERS.
|
static <T> String |
makeS3CanonicalString(String method,
String resource,
SignableRequest<T> request,
String expires,
Collection<String> additionalQueryParamsToSign)
Calculate the canonical string for a REST/HTTP request to S3.
|
public static <T> String makeS3CanonicalString(String method, String resource, SignableRequest<T> request, String expires)
RestUtils#makeS3CanonicalString(String, String, Request, String, boolean)
public static <T> String makeS3CanonicalString(String method, String resource, SignableRequest<T> request, String expires, Collection<String> additionalQueryParamsToSign)
method
- The HTTP verb.resource
- The HTTP-encoded resource path.request
- The request to be canonicalized.expires
- When expires is non-null, it will be used instead of the Date
header.additionalQueryParamsToSign
- A collection of user-specified query parameters that should be
included in the canonical request, in addition to those
default parameters that are always signed.Copyright © 2022. All rights reserved.