Struct aws_sdk_kms::operation::verify_mac::VerifyMacOutput
source · #[non_exhaustive]pub struct VerifyMacOutput {
pub key_id: Option<String>,
pub mac_valid: bool,
pub mac_algorithm: Option<MacAlgorithmSpec>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_id: Option<String>
The HMAC KMS key used in the verification.
mac_valid: bool
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.
mac_algorithm: Option<MacAlgorithmSpec>
The MAC algorithm used in the verification.
Implementations§
source§impl VerifyMacOutput
impl VerifyMacOutput
sourcepub fn mac_valid(&self) -> bool
pub fn mac_valid(&self) -> bool
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.
sourcepub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
pub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
The MAC algorithm used in the verification.
source§impl VerifyMacOutput
impl VerifyMacOutput
sourcepub fn builder() -> VerifyMacOutputBuilder
pub fn builder() -> VerifyMacOutputBuilder
Creates a new builder-style object to manufacture VerifyMacOutput
.
Trait Implementations§
source§impl Clone for VerifyMacOutput
impl Clone for VerifyMacOutput
source§fn clone(&self) -> VerifyMacOutput
fn clone(&self) -> VerifyMacOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerifyMacOutput
impl Debug for VerifyMacOutput
source§impl PartialEq for VerifyMacOutput
impl PartialEq for VerifyMacOutput
source§fn eq(&self, other: &VerifyMacOutput) -> bool
fn eq(&self, other: &VerifyMacOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for VerifyMacOutput
impl RequestId for VerifyMacOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.