Module: JOSE::JWS::ALG

Extended by:
ALG
Included in:
ALG
Defined in:
lib/jose/jws/alg.rb

Instance Method Summary collapse

Instance Method Details

#generate_key(parameters, algorithm) ⇒ Object


5
6
7
8
9
10
# File 'lib/jose/jws/alg.rb', line 5

def generate_key(parameters, algorithm)
  return JOSE::JWK.generate_key(parameters).merge({
    'alg' => algorithm,
    'use' => 'sig'
  })
end