@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GenerateMacResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
GenerateMacResult() |
| Modifier and Type | Method and Description |
|---|---|
GenerateMacResult |
clone() |
boolean |
equals(Object obj) |
String |
getKeyId()
The HMAC KMS key used in the operation.
|
ByteBuffer |
getMac()
The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and
MAC algorithm.
|
String |
getMacAlgorithm()
The MAC algorithm that was used to generate the HMAC.
|
int |
hashCode() |
void |
setKeyId(String keyId)
The HMAC KMS key used in the operation.
|
void |
setMac(ByteBuffer mac)
The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and
MAC algorithm.
|
void |
setMacAlgorithm(String macAlgorithm)
The MAC algorithm that was used to generate the HMAC.
|
String |
toString()
Returns a string representation of this object.
|
GenerateMacResult |
withKeyId(String keyId)
The HMAC KMS key used in the operation.
|
GenerateMacResult |
withMac(ByteBuffer mac)
The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and
MAC algorithm.
|
GenerateMacResult |
withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm that was used to generate the HMAC.
|
GenerateMacResult |
withMacAlgorithm(String macAlgorithm)
The MAC algorithm that was used to generate the HMAC.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setMac(ByteBuffer mac)
The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and MAC algorithm.
This is the standard, raw HMAC defined in RFC 2104.
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 hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS
key, and MAC algorithm.
This is the standard, raw HMAC defined in RFC 2104.
public ByteBuffer getMac()
The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and MAC algorithm.
This is the standard, raw HMAC defined in RFC 2104.
ByteBuffers 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.
This is the standard, raw HMAC defined in RFC 2104.
public GenerateMacResult withMac(ByteBuffer mac)
The hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS key, and MAC algorithm.
This is the standard, raw HMAC defined in RFC 2104.
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 hash-based message authentication code (HMAC) that was generated for the specified message, HMAC KMS
key, and MAC algorithm.
This is the standard, raw HMAC defined in RFC 2104.
public void setMacAlgorithm(String macAlgorithm)
The MAC algorithm that was used to generate the HMAC.
macAlgorithm - The MAC algorithm that was used to generate the HMAC.MacAlgorithmSpecpublic String getMacAlgorithm()
The MAC algorithm that was used to generate the HMAC.
MacAlgorithmSpecpublic GenerateMacResult withMacAlgorithm(String macAlgorithm)
The MAC algorithm that was used to generate the HMAC.
macAlgorithm - The MAC algorithm that was used to generate the HMAC.MacAlgorithmSpecpublic GenerateMacResult withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm that was used to generate the HMAC.
macAlgorithm - The MAC algorithm that was used to generate the HMAC.MacAlgorithmSpecpublic void setKeyId(String keyId)
The HMAC KMS key used in the operation.
keyId - The HMAC KMS key used in the operation.public String getKeyId()
The HMAC KMS key used in the operation.
public GenerateMacResult withKeyId(String keyId)
The HMAC KMS key used in the operation.
keyId - The HMAC KMS key used in the operation.public String toString()
toString in class ObjectObject.toString()public GenerateMacResult clone()