Package com.oracle.bmc.http.signing
Enum SigningStrategy
- java.lang.Object
-
- java.lang.Enum<SigningStrategy>
-
- com.oracle.bmc.http.signing.SigningStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<SigningStrategy>
public enum SigningStrategy extends Enum<SigningStrategy>
Enum for the various signing strategies used by OCI.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCLUDE_BODY
A strategy that does not sign the body.STANDARD
Standard signing strategy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>
getHeadersToSign()
The Map of headers (by HTTP method) to sign.Map<String,List<String>>
getOptionalHeadersToSign()
The Map of headers (by HTTP method) to sign, if they are set.boolean
isSkipContentHeadersForStreamingPutRequests()
Flag to indicate whether a PUT requests require content-* headers to be signed.static SigningStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static SigningStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final SigningStrategy STANDARD
Standard signing strategy.
-
EXCLUDE_BODY
public static final SigningStrategy EXCLUDE_BODY
A strategy that does not sign the body.
-
-
Method Detail
-
values
public static SigningStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SigningStrategy c : SigningStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SigningStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getHeadersToSign
public Map<String,List<String>> getHeadersToSign()
The Map of headers (by HTTP method) to sign.
-
getOptionalHeadersToSign
public Map<String,List<String>> getOptionalHeadersToSign()
The Map of headers (by HTTP method) to sign, if they are set.
-
isSkipContentHeadersForStreamingPutRequests
public boolean isSkipContentHeadersForStreamingPutRequests()
Flag to indicate whether a PUT requests require content-* headers to be signed.
-
-