Class Constants
- java.lang.Object
-
- com.oracle.bmc.http.signing.internal.Constants
-
public class Constants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableList<String>ALL_HEADERSDeprecated.use ALL_HEADERS_LIST insteadstatic List<String>ALL_HEADERS_LISTstatic ImmutableList<String>BODY_HEADERSDeprecated.use BODY_HEADERS_LIST insteadstatic List<String>BODY_HEADERS_LISTstatic StringCROSS_TENANCY_REQUEST_HEADER_NAMEstatic ImmutableList<String>GENERIC_HEADERSDeprecated.Use GENERIC_HEADERS_LIST insteadstatic List<String>GENERIC_HEADERS_LISTstatic StringHOSTstatic StringOPC_OBO_TOKENstatic List<String>OPTIONAL_HEADERS_NAMESHeaders included in the signature if they are set.static ImmutableMap<String,List<String>>OPTIONAL_SIGNING_HEADERSDeprecated.use OPTIONAL_SIGNING_HEADERS_MAP insteadstatic Map<String,List<String>>OPTIONAL_SIGNING_HEADERS_MAPstatic ImmutableMap<String,List<String>>REQUIRED_EXCLUDE_BODY_SIGNING_HEADERSDeprecated.use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP insteadstatic Map<String,List<String>>REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAPA signing strategy that signs headers only.static ImmutableMap<String,List<String>>REQUIRED_OBJECTSTORAGE_SIGNING_HEADERSDeprecated.use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP insteadstatic Map<String,List<String>>REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS_MAPDeprecated.use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP instead; Object Storage has migrated to using STANDARD, with EXCLUDE_BODY as a per-operation override.static ImmutableMap<String,List<String>>REQUIRED_SIGNING_HEADERSDeprecated.use REQUIRED_SIGNING_HEADERS_MAP insteadstatic Map<String,List<String>>REQUIRED_SIGNING_HEADERS_MAP
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Map<String,List<String>>createHeadersToSignForVerbMap(List<String> getHeaders, List<String> headHeaders, List<String> deleteHeaders, List<String> putHeaders, List<String> postHeaders, List<String> patchHeaders)Creates a map of headers to sign for each HTTP method.static ImmutableMap<String,List<String>>createHeadersToSignMap(List<String> getHeaders, List<String> headHeaders, List<String> deleteHeaders, List<String> putHeaders, List<String> postHeaders, List<String> patchHeaders)Deprecated.use createHeadersToSignForVerbMap instead
-
-
-
Field Detail
-
HOST
public static final String HOST
- See Also:
- Constant Field Values
-
CROSS_TENANCY_REQUEST_HEADER_NAME
public static final String CROSS_TENANCY_REQUEST_HEADER_NAME
- See Also:
- Constant Field Values
-
OPC_OBO_TOKEN
public static final String OPC_OBO_TOKEN
- See Also:
- Constant Field Values
-
GENERIC_HEADERS
@Deprecated public static final ImmutableList<String> GENERIC_HEADERS
Deprecated.Use GENERIC_HEADERS_LIST insteadThis field will be removed soon, when Guava is removed as a dependency.
-
BODY_HEADERS
@Deprecated public static final ImmutableList<String> BODY_HEADERS
Deprecated.use BODY_HEADERS_LIST insteadThis field will be removed soon, when Guava is removed as a dependency.
-
ALL_HEADERS
@Deprecated public static final ImmutableList<String> ALL_HEADERS
Deprecated.use ALL_HEADERS_LIST insteadThis field will be removed soon, when Guava is removed as a dependency.
-
REQUIRED_SIGNING_HEADERS_MAP
public static final Map<String,List<String>> REQUIRED_SIGNING_HEADERS_MAP
-
REQUIRED_SIGNING_HEADERS
@Deprecated public static final ImmutableMap<String,List<String>> REQUIRED_SIGNING_HEADERS
Deprecated.use REQUIRED_SIGNING_HEADERS_MAP insteadThis field will be removed soon, when Guava is removed as a dependency.
-
REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS_MAP
@Deprecated public static final Map<String,List<String>> REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS_MAP
Deprecated.use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP instead; Object Storage has migrated to using STANDARD, with EXCLUDE_BODY as a per-operation override. We therefore do not want to maintain a service-specific signing strategy.A signing strategy that signs headers and body, except for PUT, where bodies are not signed
-
REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS
@Deprecated public static final ImmutableMap<String,List<String>> REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS
Deprecated.use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP insteadThis field will be removed soon, when Guava is removed as a dependency.
-
REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP
public static final Map<String,List<String>> REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP
A signing strategy that signs headers only.
-
REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS
@Deprecated public static final ImmutableMap<String,List<String>> REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS
Deprecated.use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP insteadThis field will be removed soon, when Guava is removed as a dependency.
-
OPTIONAL_HEADERS_NAMES
public static final List<String> OPTIONAL_HEADERS_NAMES
Headers included in the signature if they are set.
-
OPTIONAL_SIGNING_HEADERS_MAP
public static final Map<String,List<String>> OPTIONAL_SIGNING_HEADERS_MAP
-
OPTIONAL_SIGNING_HEADERS
@Deprecated public static final ImmutableMap<String,List<String>> OPTIONAL_SIGNING_HEADERS
Deprecated.use OPTIONAL_SIGNING_HEADERS_MAP insteadThis field will be removed soon, when Guava is removed as a dependency.
-
-
Method Detail
-
createHeadersToSignMap
@Deprecated public static ImmutableMap<String,List<String>> createHeadersToSignMap(List<String> getHeaders, List<String> headHeaders, List<String> deleteHeaders, List<String> putHeaders, List<String> postHeaders, List<String> patchHeaders)
Deprecated.use createHeadersToSignForVerbMap insteadCreates a map of headers to sign for each HTTP method.- Parameters:
getHeaders- headers for GET requestsheadHeaders- headers for HEAD requestsdeleteHeaders- headers for DELETE requestsputHeaders- headers for PUT requestspostHeaders- headers for POST requestspatchHeaders- headers for PATCH requests- Returns:
- A new immutable map of headers
-
createHeadersToSignForVerbMap
public static Map<String,List<String>> createHeadersToSignForVerbMap(List<String> getHeaders, List<String> headHeaders, List<String> deleteHeaders, List<String> putHeaders, List<String> postHeaders, List<String> patchHeaders)
Creates a map of headers to sign for each HTTP method.- Parameters:
getHeaders- headers for GET requestsheadHeaders- headers for HEAD requestsdeleteHeaders- headers for DELETE requestsputHeaders- headers for PUT requestspostHeaders- headers for POST requestspatchHeaders- headers for PATCH requests- Returns:
- A new immutable map of headers
-
-