Class: Sandal::Sig::HS512

Inherits:
HS
  • Object
show all
Defined in:
lib/sandal/sig/hs.rb

Overview

The HMAC-SHA512 signing algorithm.

Constant Summary collapse

NAME =

The JWA name of the algorithm.

"HS512"

Instance Attribute Summary

Attributes inherited from HS

#name

Instance Method Summary collapse

Methods inherited from HS

#sign, #valid?

Constructor Details

#initialize(key) ⇒ HS512

Creates a new instance.

Parameters:

  • key (String)

    The key to use for signing or validation.



80
81
82
# File 'lib/sandal/sig/hs.rb', line 80

def initialize(key)
  super(NAME, 512, key)
end