Class: NemID::Authentication::Params
- Inherits:
-
Object
- Object
- NemID::Authentication::Params
- Defined in:
- lib/nemid/authentication/params.rb
Instance Method Summary collapse
- #client_initialization_parameters ⇒ Object
-
#initialize(cert:, key:) ⇒ Params
constructor
A new instance of Params.
Constructor Details
Instance Method Details
#client_initialization_parameters ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/nemid/authentication/params.rb', line 10 def client_initialization_parameters params = unsigned_params normalized_unsigned_params = normalize(unsigned_params) params.merge({ "DIGEST_SIGNATURE": digest_signature(normalized_unsigned_params), "PARAMS_DIGEST": params_digest(normalized_unsigned_params), }) end |