Class SignerProperty<T>
- Type Parameters:
T- The type of the property.
HttpSigner.
Signer properties are used to configure signing behavior by passing parameters to signers through
AuthSchemeOptions. Common properties include signing region,
service name, and signing algorithm parameters.
Common Built-in Properties
The SDK provides several built-in AWS V4 signer properties:
AwsV4FamilyHttpSigner.SERVICE_SIGNING_NAME- The service name to use in the signatureAwsV4FamilyHttpSigner.REGION_NAME- The AWS region for signingAwsV4FamilyHttpSigner.DOUBLE_URL_ENCODE- Whether to double URL-encode the pathAwsV4FamilyHttpSigner.NORMALIZE_PATH- Whether to normalize the request pathAwsV4FamilyHttpSigner.PAYLOAD_SIGNING_ENABLED- Whether to indicate that a payload is signed or not.
Overriding Properties via AuthSchemeProvider
To override signer properties, implement a custom AuthSchemeProvider
that wraps the default provider and modifies the properties on resolved
AuthSchemeOptions.
Example - Overriding service signing name:
Creating Custom Properties
When implementing a custom HttpSigner, you can define your own properties to accept additional configuration.
Properties should be defined as public static constants in your signer class.
Example - Custom signer with custom property:
- See Also:
-
Method Summary
-
Method Details
-
create
Create a property.- Type Parameters:
T- the type of the property.- Parameters:
namespace- the class *where* the property is being definedname- the name for the property- Throws:
IllegalArgumentException- if a property with this namespace and name already exist
-
toString
-
equals
-
hashCode
public int hashCode()
-