Method: Selenium::WebDriver::Credential#initialize
- Defined in:
- lib/selenium/webdriver/common/virtual_authenticator/credential.rb
permalink #initialize(id:, resident_credential:, rp_id:, private_key:, **opts) ⇒ Credential
Returns a new instance of Credential.
59 60 61 62 63 64 65 66 67 68 |
# File 'lib/selenium/webdriver/common/virtual_authenticator/credential.rb', line 59 def initialize(id:, resident_credential:, rp_id:, private_key:, **opts) @id = id @resident_credential = resident_credential @rp_id = rp_id @user_handle = opts.delete(:user_handle) { nil } @private_key = private_key @sign_count = opts.delete(:sign_count) { 0 } raise ArgumentError, "Invalid arguments: #{opts.keys}" unless opts.empty? end |