Interface VerifyMacRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<VerifyMacRequest.Builder,VerifyMacRequest>,KmsRequest.Builder,SdkBuilder<VerifyMacRequest.Builder,VerifyMacRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- VerifyMacRequest
public static interface VerifyMacRequest.Builder extends KmsRequest.Builder, SdkPojo, CopyableBuilder<VerifyMacRequest.Builder,VerifyMacRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VerifyMacRequest.BuilderdryRun(Boolean dryRun)Checks if your request will succeed.VerifyMacRequest.BuildergrantTokens(String... grantTokens)A list of grant tokens.VerifyMacRequest.BuildergrantTokens(Collection<String> grantTokens)A list of grant tokens.VerifyMacRequest.BuilderkeyId(String keyId)The KMS key that will be used in the verification.VerifyMacRequest.Buildermac(SdkBytes mac)The HMAC to verify.VerifyMacRequest.BuildermacAlgorithm(String macAlgorithm)The MAC algorithm that will be used in the verification.VerifyMacRequest.BuildermacAlgorithm(MacAlgorithmSpec macAlgorithm)The MAC algorithm that will be used in the verification.VerifyMacRequest.Buildermessage(SdkBytes message)The message that will be used in the verification.VerifyMacRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)VerifyMacRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kms.model.KmsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
message
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
VerifyMacdo 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.- Parameters:
message- The message that will be used in the verification. Enter the same message that was used to generate the HMAC.GenerateMac and
VerifyMacdo 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyId
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
VerifyMacoperation fails.- Parameters:
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
VerifyMacoperation fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
macAlgorithm
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
KeyIdparameter.- Parameters:
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 theKeyIdparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MacAlgorithmSpec,MacAlgorithmSpec
-
macAlgorithm
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
KeyIdparameter.- Parameters:
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 theKeyIdparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MacAlgorithmSpec,MacAlgorithmSpec
-
mac
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantTokens
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantTokens
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
VerifyMacRequest.Builder dryRun(Boolean dryRun)
Checks if your request will succeed.
DryRunis an optional parameter.To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
- Parameters:
dryRun- Checks if your request will succeed.DryRunis an optional parameter.To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
VerifyMacRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
VerifyMacRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-