Struct aws_sdk_kms::input::VerifyMacInput
source · [−]#[non_exhaustive]pub struct VerifyMacInput {
pub message: Option<Blob>,
pub key_id: Option<String>,
pub mac_algorithm: Option<MacAlgorithmSpec>,
pub mac: Option<Blob>,
pub grant_tokens: Option<Vec<String>>,
}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.message: Option<Blob>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.
key_id: Option<String>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.
mac_algorithm: Option<MacAlgorithmSpec>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.
mac: Option<Blob>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.
grant_tokens: Option<Vec<String>>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.
Implementations
sourceimpl VerifyMacInput
impl VerifyMacInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<VerifyMac, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<VerifyMac, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<VerifyMac>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VerifyMacInput
sourceimpl VerifyMacInput
impl VerifyMacInput
sourcepub fn message(&self) -> Option<&Blob>
pub fn message(&self) -> Option<&Blob>
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.
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
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.
sourcepub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
pub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
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.
sourcepub fn mac(&self) -> Option<&Blob>
pub fn mac(&self) -> Option<&Blob>
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.
sourcepub fn grant_tokens(&self) -> Option<&[String]>
pub fn grant_tokens(&self) -> Option<&[String]>
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.
Trait Implementations
sourceimpl Clone for VerifyMacInput
impl Clone for VerifyMacInput
sourcefn clone(&self) -> VerifyMacInput
fn clone(&self) -> VerifyMacInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for VerifyMacInput
impl Debug for VerifyMacInput
sourceimpl PartialEq<VerifyMacInput> for VerifyMacInput
impl PartialEq<VerifyMacInput> for VerifyMacInput
sourcefn eq(&self, other: &VerifyMacInput) -> bool
fn eq(&self, other: &VerifyMacInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &VerifyMacInput) -> bool
fn ne(&self, other: &VerifyMacInput) -> bool
This method tests for !=.
impl StructuralPartialEq for VerifyMacInput
Auto Trait Implementations
impl RefUnwindSafe for VerifyMacInput
impl Send for VerifyMacInput
impl Sync for VerifyMacInput
impl Unpin for VerifyMacInput
impl UnwindSafe for VerifyMacInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more