Class: Echochamber::WidgetSignerSecurityOption

Inherits:
Hash
  • Object
show all
Includes:
Validatable
Defined in:
lib/echochamber/widget/widget_signer_security_option.rb

Instance Method Summary collapse

Methods included from Validatable

#require_exactly_one, #require_keys, #validate_field

Constructor Details

#initialize(params) ⇒ WidgetSignerSecurityOption

Initialization object

Parameters:

  • params (Hash)

    SYMBOL-referenced Hash containing:

Options Hash (params):

  • :authenticationMethod (String)

    ['INHERITED_FROM_DOCUMENT' or 'KBA' or 'PASSWORD' or 'WEB_IDENTITY' or 'PHONE' or 'NONE']: The authentication method for the recipients to have access to view and sign the widget. PHONE authentication is only applicable to counter signers but not to widget signer

  • :password (String)

    The password required for the recipient to view and sign the widget

  • :phoneInfos (Array)

    Populated with instances of [Echochamber::PhoneInfo] The phoneInfo required for the counter signer to view and sign the widget if authentication method is PHONE. Not applicable to widget signer


12
13
14
15
# File 'lib/echochamber/widget/widget_signer_security_option.rb', line 12

def initialize(params)
  require_keys([:authenticationMethod], params)
  merge!(params)
end