123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::VirtualAuthenticatorOptions

Relationships & Source Files
Inherits: Object
Defined in: rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb

Constant Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(**opts) ⇒ VirtualAuthenticatorOptions

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 37

def initialize(**opts)
  @protocol = opts.delete(:protocol) { :ctap2 }
  @transport = opts.delete(:transport) { :usb }
  @resident_key = opts.delete(:resident_key) { false }
  @user_verification = opts.delete(:user_verification) { false }
  @user_consenting = opts.delete(:user_consenting) { true }
  @user_verified = opts.delete(:user_verified) { false }

  raise ArgumentError, "Invalid arguments: #{opts.keys}" unless opts.empty?
end

Instance Attribute Details

#protocol (rw)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 31

attr_accessor :protocol, :transport, :resident_key, :user_verification, :user_consenting, :user_verified

#resident_key? (rw)

Alias for #resident_key.

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 32

alias resident_key? resident_key

#transport (rw)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 31

attr_accessor :protocol, :transport, :resident_key, :user_verification, :user_consenting, :user_verified

#user_consenting? (rw)

Alias for #user_consenting.

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 34

alias user_consenting? user_consenting

#user_verification? (rw)

Alias for #user_verification.

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 33

alias user_verification? user_verification

#user_verified? (rw)

Alias for #user_verified.

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 35

alias user_verified? user_verified

Instance Method Details

#as_json

This method is for internal use only.
[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 52

def as_json(*)
  {'protocol' => PROTOCOL[protocol],
   'transport' => TRANSPORT[transport],
   'hasResidentKey' => resident_key?,
   'hasUserVerification' => user_verification?,
   'isUserConsenting' => user_consenting?,
   'isUserVerified' => user_verified?}
end

#resident_key (rw) Also known as: #resident_key?

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 31

attr_accessor :protocol, :transport, :resident_key, :user_verification, :user_consenting, :user_verified

#user_consenting (rw) Also known as: #user_consenting?

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 31

attr_accessor :protocol, :transport, :resident_key, :user_verification, :user_consenting, :user_verified

#user_verification (rw) Also known as: #user_verification?

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 31

attr_accessor :protocol, :transport, :resident_key, :user_verification, :user_consenting, :user_verified

#user_verified (rw) Also known as: #user_verified?

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 31

attr_accessor :protocol, :transport, :resident_key, :user_verification, :user_consenting, :user_verified