Class: Selenium::WebDriver::VirtualAuthenticatorOptions
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb |
Constant Summary
-
PROTOCOL =
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 28{ctap2: 'ctap2', u2f: 'ctap1/u2f'}.freeze
-
TRANSPORT =
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 29{ble: 'ble', usb: 'usb', nfc: 'nfc', internal: 'internal'}.freeze
Class Method Summary
- .new(**opts) ⇒ VirtualAuthenticatorOptions constructor
Instance Attribute Summary
- #protocol rw
-
#resident_key?
rw
Alias for #resident_key.
- #transport rw
-
#user_consenting?
rw
Alias for #user_consenting.
-
#user_verification?
rw
Alias for #user_verification.
-
#user_verified?
rw
Alias for #user_verified.
Instance Method Summary
- #resident_key (also: #resident_key?) rw
- #user_consenting (also: #user_consenting?) rw
- #user_verification (also: #user_verification?) rw
- #user_verified (also: #user_verified?) rw
- #as_json Internal use only Internal use only
Constructor Details
.new(**opts) ⇒ VirtualAuthenticatorOptions
# 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(: ) { 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_verified
#resident_key? (rw)
Alias for #resident_key.
# 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_verified
#user_consenting? (rw)
Alias for #user_consenting.
# File 'rb/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb', line 34
alias
#user_verification? (rw)
Alias for #user_verification.
# 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.
# 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' => , '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_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_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_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_verified