Class: Aws::KMS::Types::VerifyMacResponse

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-kms/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#key_idString

The HMAC KMS key used in the verification.

Returns:

  • (String)


6509
6510
6511
6512
6513
6514
6515
# File 'lib/aws-sdk-kms/types.rb', line 6509

class VerifyMacResponse < Struct.new(
  :key_id,
  :mac_valid,
  :mac_algorithm)
  SENSITIVE = []
  include Aws::Structure
end

#mac_algorithmString

The MAC algorithm used in the verification.

Returns:

  • (String)


6509
6510
6511
6512
6513
6514
6515
# File 'lib/aws-sdk-kms/types.rb', line 6509

class VerifyMacResponse < Struct.new(
  :key_id,
  :mac_valid,
  :mac_algorithm)
  SENSITIVE = []
  include Aws::Structure
end

#mac_validBoolean

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.

Returns:

  • (Boolean)


6509
6510
6511
6512
6513
6514
6515
# File 'lib/aws-sdk-kms/types.rb', line 6509

class VerifyMacResponse < Struct.new(
  :key_id,
  :mac_valid,
  :mac_algorithm)
  SENSITIVE = []
  include Aws::Structure
end