Class: JWT::Aws::KMS::HmacKey
- Inherits:
-
Object
- Object
- JWT::Aws::KMS::HmacKey
- Includes:
- JWA::SigningAlgorithm
- Defined in:
- lib/jwt/aws/kms/hmac_key.rb
Overview
Represent a AWS HMAC key docs.aws.amazon.com/kms/latest/developerguide/hmac.html
Constant Summary collapse
- MAPPINGS =
{ "HS256" => "HMAC_SHA_256", "HS384" => "HMAC_SHA_384", "HS512" => "HMAC_SHA_512" }.freeze
Instance Method Summary collapse
-
#initialize(algorithm:) ⇒ HmacKey
constructor
A new instance of HmacKey.
- #sign(data:, signing_key:) ⇒ Object
- #verify(data:, verification_key:, signature:) ⇒ Object
Constructor Details
#initialize(algorithm:) ⇒ HmacKey
Returns a new instance of HmacKey.
17 18 19 |
# File 'lib/jwt/aws/kms/hmac_key.rb', line 17 def initialize(algorithm:) @alg = algorithm end |