public static interface VerifyMacRequest.Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<VerifyMacRequest.Builder,VerifyMacRequest>
Modifier and Type | Method and Description |
---|---|
VerifyMacRequest.Builder |
grantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
VerifyMacRequest.Builder |
grantTokens(String... grantTokens)
A list of grant tokens.
|
VerifyMacRequest.Builder |
keyId(String keyId)
The KMS key that will be used in the verification.
|
VerifyMacRequest.Builder |
mac(SdkBytes mac)
The HMAC to verify.
|
VerifyMacRequest.Builder |
macAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm that will be used in the verification.
|
VerifyMacRequest.Builder |
macAlgorithm(String macAlgorithm)
The MAC algorithm that will be used in the verification.
|
VerifyMacRequest.Builder |
message(SdkBytes message)
The message that will be used in the verification.
|
VerifyMacRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
VerifyMacRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
VerifyMacRequest.Builder message(SdkBytes message)
The message that will be used in the verification. Enter the same message that was used to generate the HMAC.
GenerateMac and VerifyMac
do not provide special handling for message digests. If you
generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.
message
- The message that will be used in the verification. Enter the same message that was used to generate
the HMAC.
GenerateMac and VerifyMac
do not provide special handling for message digests. If
you generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash
digest.
VerifyMacRequest.Builder keyId(String keyId)
The KMS key that will be used in the verification.
Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key, the
VerifyMac
operation fails.
keyId
- The KMS key that will be used in the verification.
Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key,
the VerifyMac
operation fails.
VerifyMacRequest.Builder macAlgorithm(String macAlgorithm)
The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the KeyId
parameter.
macAlgorithm
- The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the
KeyId
parameter.MacAlgorithmSpec
,
MacAlgorithmSpec
VerifyMacRequest.Builder macAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the KeyId
parameter.
macAlgorithm
- The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to
compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the
KeyId
parameter.MacAlgorithmSpec
,
MacAlgorithmSpec
VerifyMacRequest.Builder mac(SdkBytes mac)
The HMAC to verify. Enter the HMAC that was generated by the GenerateMac operation when you specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.
mac
- The HMAC to verify. Enter the HMAC that was generated by the GenerateMac operation when you
specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.VerifyMacRequest.Builder grantTokens(Collection<String> grantTokens)
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
grantTokens
- A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
VerifyMacRequest.Builder grantTokens(String... grantTokens)
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
grantTokens
- A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
VerifyMacRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
VerifyMacRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2022. All rights reserved.