class Sandal::Sig::RS512
The RSA-SHA512 signing algorithm.
Constants
- NAME
The JWA name of the algorithm.
Public Class Methods
new(key)
click to toggle source
Creates a new instance.
@param 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.
Calls superclass method
Sandal::Sig::RS::new
# File lib/sandal/sig/rs.rb, line 99 def initialize(key) super(NAME, 512, make_key(key)) end