mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Assign ownership to many of the remaining libs/common files. Criteria for ownership: * Files used by a single team, is now owned by that team. * Files related to a domain owned by a team is now owned by that team. * Where ownership is unclear the "lowest level" service takes ownership.
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { BaseResponse } from "../../../models/response/base.response";
|
|
|
|
export class Fido2CredentialApi extends BaseResponse {
|
|
credentialId: string;
|
|
keyType: "public-key";
|
|
keyAlgorithm: "ECDSA";
|
|
keyCurve: "P-256";
|
|
keyValue: string;
|
|
rpId: string;
|
|
userHandle: string;
|
|
userName: string;
|
|
counter: string;
|
|
rpName: string;
|
|
userDisplayName: string;
|
|
discoverable: string;
|
|
creationDate: string;
|
|
|
|
constructor(data: any = null) {
|
|
super(data);
|
|
if (data == null) {
|
|
return;
|
|
}
|
|
|
|
this.credentialId = this.getResponseProperty("CredentialId");
|
|
this.keyType = this.getResponseProperty("KeyType");
|
|
this.keyAlgorithm = this.getResponseProperty("KeyAlgorithm");
|
|
this.keyCurve = this.getResponseProperty("KeyCurve");
|
|
this.keyValue = this.getResponseProperty("keyValue");
|
|
this.rpId = this.getResponseProperty("RpId");
|
|
this.userHandle = this.getResponseProperty("UserHandle");
|
|
this.userName = this.getResponseProperty("UserName");
|
|
this.counter = this.getResponseProperty("Counter");
|
|
this.rpName = this.getResponseProperty("RpName");
|
|
this.userDisplayName = this.getResponseProperty("UserDisplayName");
|
|
this.discoverable = this.getResponseProperty("Discoverable");
|
|
this.creationDate = this.getResponseProperty("CreationDate");
|
|
}
|
|
}
|