Method: Selenium::WebDriver::Credential#as_json

Defined in:
lib/selenium/webdriver/common/virtual_authenticator/credential.rb

#as_jsonObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



74
75
76
77
78
79
80
81
82
# File 'lib/selenium/webdriver/common/virtual_authenticator/credential.rb', line 74

def as_json(*)
  credential_data = {'credentialId' => Credential.encode(id),
                     'isResidentCredential' => resident_credential?,
                     'rpId' => rp_id,
                     'privateKey' => Credential.encode(private_key),
                     'signCount' => sign_count}
  credential_data['userHandle'] = Credential.encode(user_handle) if user_handle
  credential_data
end