@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VerifyMacResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
VerifyMacResult() |
Modifier and Type | Method and Description |
---|---|
VerifyMacResult |
clone() |
boolean |
equals(Object obj) |
String |
getKeyId()
The HMAC KMS key used in the verification.
|
String |
getMacAlgorithm()
The MAC algorithm used in the verification.
|
Boolean |
getMacValid()
A Boolean value that indicates whether the HMAC was verified.
|
int |
hashCode() |
Boolean |
isMacValid()
A Boolean value that indicates whether the HMAC was verified.
|
void |
setKeyId(String keyId)
The HMAC KMS key used in the verification.
|
void |
setMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the verification.
|
void |
setMacValid(Boolean macValid)
A Boolean value that indicates whether the HMAC was verified.
|
String |
toString()
Returns a string representation of this object.
|
VerifyMacResult |
withKeyId(String keyId)
The HMAC KMS key used in the verification.
|
VerifyMacResult |
withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm used in the verification.
|
VerifyMacResult |
withMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the verification.
|
VerifyMacResult |
withMacValid(Boolean macValid)
A Boolean value that indicates whether the HMAC was verified.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKeyId(String keyId)
The HMAC KMS key used in the verification.
keyId
- The HMAC KMS key used in the verification.public String getKeyId()
The HMAC KMS key used in the verification.
public VerifyMacResult withKeyId(String keyId)
The HMAC KMS key used in the verification.
keyId
- The HMAC KMS key used in the verification.public void setMacValid(Boolean macValid)
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the
HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
)
and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed
since the HMAC was computed.
macValid
- A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that
the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (
KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs
changed since the HMAC was computed.
public Boolean getMacValid()
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the
HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
)
and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed
since the HMAC was computed.
True
indicates that
the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (
KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs
changed since the HMAC was computed.
public VerifyMacResult withMacValid(Boolean macValid)
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the
HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
)
and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed
since the HMAC was computed.
macValid
- A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that
the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (
KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs
changed since the HMAC was computed.
public Boolean isMacValid()
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the
HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
)
and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed
since the HMAC was computed.
True
indicates that
the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (
KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a
KMSInvalidMacException
exception. This exception indicates that one or more of the inputs
changed since the HMAC was computed.
public void setMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the verification.
macAlgorithm
- The MAC algorithm used in the verification.MacAlgorithmSpec
public String getMacAlgorithm()
The MAC algorithm used in the verification.
MacAlgorithmSpec
public VerifyMacResult withMacAlgorithm(String macAlgorithm)
The MAC algorithm used in the verification.
macAlgorithm
- The MAC algorithm used in the verification.MacAlgorithmSpec
public VerifyMacResult withMacAlgorithm(MacAlgorithmSpec macAlgorithm)
The MAC algorithm used in the verification.
macAlgorithm
- The MAC algorithm used in the verification.MacAlgorithmSpec
public String toString()
toString
in class Object
Object.toString()
public VerifyMacResult clone()