@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VerifyMacRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
VerifyMacRequest() |
Modifier and Type | Method and Description |
---|---|
VerifyMacRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getGrantTokens()
A list of grant tokens.
|
String |
getKeyId()
The KMS key that will be used in the verification.
|
ByteBuffer |
getMac()
The HMAC to verify.
|
String |
getMacAlgorithm()
The MAC algorithm that will be used in the verification.
|
ByteBuffer |
getMessage()
The message that will be used in the verification.
|
int |
hashCode() |
void |
setGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
void |
setKeyId(String keyId)
The KMS key that will be used in the verification.
|
void |
setMac(ByteBuffer mac)
The HMAC to verify.
|
void |
setMacAlgorithm(String macAlgorithm)
The MAC algorithm that will be used in the verification.
|
void |
setMessage(ByteBuffer message)
The message that will be used in the verification.
|
String |
toString()
Returns a string representation of this object.
|
VerifyMacRequest |
withGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
VerifyMacRequest |
withGrantTokens(String... grantTokens)
A list of grant tokens.
|
VerifyMacRequest |
withKeyId(String keyId)
The KMS key that will be used in the verification.
|
VerifyMacRequest |
withMac(ByteBuffer mac)
The HMAC to verify.
|
VerifyMacRequest |
withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm that will be used in the verification.
|
VerifyMacRequest |
withMacAlgorithm(String macAlgorithm)
The MAC algorithm that will be used in the verification.
|
VerifyMacRequest |
withMessage(ByteBuffer message)
The message that will be used in the verification.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setMessage(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.
public ByteBuffer getMessage()
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.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
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.
public VerifyMacRequest withMessage(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.
public void setKeyId(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.
public String getKeyId()
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.
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.
public VerifyMacRequest withKeyId(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.
public void setMacAlgorithm(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
public String getMacAlgorithm()
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.
KeyId
parameter.MacAlgorithmSpec
public VerifyMacRequest withMacAlgorithm(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
public VerifyMacRequest withMacAlgorithm(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
public void setMac(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.public ByteBuffer getMac()
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.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public VerifyMacRequest withMac(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.public List<String> getGrantTokens()
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.
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.
public void setGrantTokens(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.
public VerifyMacRequest withGrantTokens(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.
NOTE: This method appends the values to the existing list (if any). Use
setGrantTokens(java.util.Collection)
or withGrantTokens(java.util.Collection)
if you want to
override the existing values.
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.
public VerifyMacRequest withGrantTokens(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.
public String toString()
toString
in class Object
Object.toString()
public VerifyMacRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()