Top Description Fields Constructors Methods
com.oracle.bmc.http.signing

public final Enum SigningStrategy

extends Enum<SigningStrategy>
Class Inheritance
Annotations
@InternalSdk
Imports
com.oracle.bmc.InternalSdk, com.oracle.bmc.http.signing.internal.Constants, java.util.Collections, .List, .Map

Enum for the various signing strategies used by OCI.

Field Summary

Modifier and TypeField and Description
public static final SigningStrategy
EXCLUDE_BODY

A strategy that does not sign the body.

private final Map<String, List<String>>
headersToSign

The Map of headers (by HTTP method) to sign.

private final Map<String, List<String>>
optionalHeadersToSign

The Map of headers (by HTTP method) to sign, if they are set.

private final boolean
skipContentHeadersForStreamingPutRequests

Flag to indicate whether a PUT requests require content-* headers to be signed.

public static final SigningStrategy
STANDARD

Standard signing strategy.

Constructor Summary

AccessConstructor and Description
private
SigningStrategy(final Map<String, List<String>> headersToSign, final Map<String, List<String>> optionalHeadersToSign, final boolean skipContentHeadersForStreamingPutRequests)

Method Summary

Modifier and TypeMethod and Description
public Map<String, List<String>>
getHeadersToSign()

The Map of headers (by HTTP method) to sign.

public Map<String, List<String>>
getOptionalHeadersToSign()

The Map of headers (by HTTP method) to sign, if they are set.

public boolean
isSkipContentHeadersForStreamingPutRequests()

Flag to indicate whether a PUT requests require content-* headers to be signed.

public static SigningStrategy
public static SigningStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXCLUDE_BODYback to summary
public static final SigningStrategy EXCLUDE_BODY

A strategy that does not sign the body.

headersToSignback to summary
private final Map<String, List<String>> headersToSign

The Map of headers (by HTTP method) to sign.

optionalHeadersToSignback to summary
private final Map<String, List<String>> optionalHeadersToSign

The Map of headers (by HTTP method) to sign, if they are set.

skipContentHeadersForStreamingPutRequestsback to summary
private final boolean skipContentHeadersForStreamingPutRequests

Flag to indicate whether a PUT requests require content-* headers to be signed.

STANDARDback to summary
public static final SigningStrategy STANDARD

Standard signing strategy.

Constructor Detail

SigningStrategyback to summary
private SigningStrategy(final Map<String, List<String>> headersToSign, final Map<String, List<String>> optionalHeadersToSign, final boolean skipContentHeadersForStreamingPutRequests)
Annotations
@java.beans.ConstructorProperties

Method Detail

getHeadersToSignback to summary
public Map<String, List<String>> getHeadersToSign()

The Map of headers (by HTTP method) to sign.

getOptionalHeadersToSignback to summary
public Map<String, List<String>> getOptionalHeadersToSign()

The Map of headers (by HTTP method) to sign, if they are set.

isSkipContentHeadersForStreamingPutRequestsback to summary
public boolean isSkipContentHeadersForStreamingPutRequests()

Flag to indicate whether a PUT requests require content-* headers to be signed.

valueOfback to summary
public static SigningStrategy valueOf(String name)
valuesback to summary
public static SigningStrategy[] values()