tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

WebAuthnAutoFillEntry.cpp (858B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #include "WebAuthnAutoFillEntry.h"
      6 
      7 namespace mozilla::dom {
      8 
      9 NS_IMPL_ISUPPORTS(WebAuthnAutoFillEntry, nsIWebAuthnAutoFillEntry)
     10 
     11 NS_IMETHODIMP
     12 WebAuthnAutoFillEntry::GetProvider(uint8_t* aProvider) {
     13  *aProvider = mProvider;
     14  return NS_OK;
     15 }
     16 
     17 NS_IMETHODIMP
     18 WebAuthnAutoFillEntry::GetUserName(nsAString& aUserName) {
     19  aUserName.Assign(mUserName);
     20  return NS_OK;
     21 }
     22 
     23 NS_IMETHODIMP
     24 WebAuthnAutoFillEntry::GetRpId(nsAString& aRpId) {
     25  aRpId.Assign(mRpId);
     26  return NS_OK;
     27 }
     28 
     29 NS_IMETHODIMP
     30 WebAuthnAutoFillEntry::GetCredentialId(nsTArray<uint8_t>& aCredentialId) {
     31  aCredentialId.Assign(mCredentialId);
     32  return NS_OK;
     33 }
     34 
     35 }  // namespace mozilla::dom