Enum AwsSigningConfig.AwsSignedBodyHeaderType
- java.lang.Object
-
- java.lang.Enum<AwsSigningConfig.AwsSignedBodyHeaderType>
-
- software.amazon.awssdk.crt.auth.signing.AwsSigningConfig.AwsSignedBodyHeaderType
-
- All Implemented Interfaces:
Serializable
,Comparable<AwsSigningConfig.AwsSignedBodyHeaderType>
- Enclosing class:
- AwsSigningConfig
public static enum AwsSigningConfig.AwsSignedBodyHeaderType extends Enum<AwsSigningConfig.AwsSignedBodyHeaderType>
Controls if signing adds a header containing the canonical request's body value
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
Do not add any signing information about the body to the signed requestX_AMZ_CONTENT_SHA256
Add the 'X-Amz-Content-Sha256' header to the signed request
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsSigningConfig.AwsSignedBodyHeaderType
getEnumValueFromInteger(int value)
Creates a Java enum value from a native enum value as an integerint
getNativeValue()
Gets the native enum value as an integer that is associated with this Java enum valuestatic AwsSigningConfig.AwsSignedBodyHeaderType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AwsSigningConfig.AwsSignedBodyHeaderType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final AwsSigningConfig.AwsSignedBodyHeaderType NONE
Do not add any signing information about the body to the signed request
-
X_AMZ_CONTENT_SHA256
public static final AwsSigningConfig.AwsSignedBodyHeaderType X_AMZ_CONTENT_SHA256
Add the 'X-Amz-Content-Sha256' header to the signed request
-
-
Method Detail
-
values
public static AwsSigningConfig.AwsSignedBodyHeaderType[] 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 (AwsSigningConfig.AwsSignedBodyHeaderType c : AwsSigningConfig.AwsSignedBodyHeaderType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AwsSigningConfig.AwsSignedBodyHeaderType 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
-
getNativeValue
public int getNativeValue()
Gets the native enum value as an integer that is associated with this Java enum value- Returns:
- this value's associated native enum value
-
getEnumValueFromInteger
public static AwsSigningConfig.AwsSignedBodyHeaderType getEnumValueFromInteger(int value)
Creates a Java enum value from a native enum value as an integer- Parameters:
value
- native enum value- Returns:
- the corresponding Java enum value
-
-