Class: Sandal::Sig::RS384

Inherits:
RS
  • Object
show all
Defined in:
lib/sandal/sig/rs.rb

Overview

The RSA-SHA384 signing algorithm.

Constant Summary collapse

NAME =

The JWA name of the algorithm.

"RS384"

Instance Attribute Summary

Attributes inherited from RS

#name

Instance Method Summary collapse

Methods inherited from RS

#sign, #valid?

Constructor Details

#initialize(key) ⇒ RS384

Creates a new instance.

Parameters:

  • key (OpenSSL::PKey::RSA or String)

    The key to use for signing (private) or validation (public). If the value is a String then it will be passed to the constructor of the RSA class. This must be at least 2048 bits to be compliant with the JWA specification.



83
84
85
# File 'lib/sandal/sig/rs.rb', line 83

def initialize(key)
  super(NAME, 384, make_key(key))
end