@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GenerateMacRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GenerateMacRequest() |
Modifier and Type | Method and Description |
---|---|
GenerateMacRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getDryRun()
Checks if your request will succeed.
|
List<String> |
getGrantTokens()
A list of grant tokens.
|
String |
getKeyId()
The HMAC KMS key to use in the operation.
|
String |
getMacAlgorithm()
The MAC algorithm used in the operation.
|
ByteBuffer |
getMessage()
The message to be hashed.
|
int |
hashCode() |
Boolean |
isDryRun()
Checks if your request will succeed.
|
void |
setDryRun(Boolean dryRun)
Checks if your request will succeed.
|
void |
setGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
void |
setKeyId(String keyId)
The HMAC KMS key to use in the operation.
|
void |
setMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the operation.
|
void |
setMessage(ByteBuffer message)
The message to be hashed.
|
String |
toString()
Returns a string representation of this object.
|
GenerateMacRequest |
withDryRun(Boolean dryRun)
Checks if your request will succeed.
|
GenerateMacRequest |
withGrantTokens(Collection<String> grantTokens)
A list of grant tokens.
|
GenerateMacRequest |
withGrantTokens(String... grantTokens)
A list of grant tokens.
|
GenerateMacRequest |
withKeyId(String keyId)
The HMAC KMS key to use in the operation.
|
GenerateMacRequest |
withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm used in the operation.
|
GenerateMacRequest |
withMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the operation.
|
GenerateMacRequest |
withMessage(ByteBuffer message)
The message to be hashed.
|
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 to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac do not provide special handling for message digests. If you
generate an HMAC for a hash digest of a message, you must verify the HMAC of 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 to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac do not provide special handling for message digests. If you
generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
public ByteBuffer getMessage()
The message to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac do not provide special handling for message digests. If you
generate an HMAC for a hash digest of a message, you must verify the HMAC of 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
generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
public GenerateMacRequest withMessage(ByteBuffer message)
The message to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac do not provide special handling for message digests. If you
generate an HMAC for a hash digest of a message, you must verify the HMAC of 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 to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac do not provide special handling for message digests. If you
generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
public void setKeyId(String keyId)
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec
field in the
response.
keyId
- The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key
as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec
field
in the response.
public String getKeyId()
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec
field in the
response.
To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec
field
in the response.
public GenerateMacRequest withKeyId(String keyId)
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec
field in the
response.
keyId
- The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key
as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec
field
in the response.
public void setMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the
DescribeKey
response.
macAlgorithm
- The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
your HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the DescribeKey
response.
MacAlgorithmSpec
public String getMacAlgorithm()
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the
DescribeKey
response.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
your HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the DescribeKey
response.
MacAlgorithmSpec
public GenerateMacRequest withMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the
DescribeKey
response.
macAlgorithm
- The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
your HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the DescribeKey
response.
MacAlgorithmSpec
public GenerateMacRequest withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your
HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the
DescribeKey
response.
macAlgorithm
- The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that
your HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms
field in the DescribeKey
response.
MacAlgorithmSpec
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 GenerateMacRequest 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 GenerateMacRequest 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 void setDryRun(Boolean dryRun)
Checks if your request will succeed. DryRun
is 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.
dryRun
- Checks if your request will succeed. DryRun
is 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.
public Boolean getDryRun()
Checks if your request will succeed. DryRun
is 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.
DryRun
is 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.
public GenerateMacRequest withDryRun(Boolean dryRun)
Checks if your request will succeed. DryRun
is 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.
dryRun
- Checks if your request will succeed. DryRun
is 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.
public Boolean isDryRun()
Checks if your request will succeed. DryRun
is 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.
DryRun
is 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.
public String toString()
toString
in class Object
Object.toString()
public GenerateMacRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()