1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

u2f token provider

This commit is contained in:
Kyle Spearrin
2017-06-22 09:09:51 -04:00
parent 731a1e31b9
commit 3ae96bd510
4 changed files with 184 additions and 6 deletions

View File

@ -1,4 +1,6 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using U2F.Core.Utils;
namespace Bit.Core.Models
{
@ -10,8 +12,14 @@ namespace Bit.Core.Models
public class U2fMetaData
{
public string KeyHandle { get; set; }
public byte[] KeyHandleBytes =>
string.IsNullOrWhiteSpace(KeyHandle) ? null : Utils.Base64StringToByteArray(KeyHandle);
public string PublicKey { get; set; }
public byte[] PublicKeyBytes =>
string.IsNullOrWhiteSpace(PublicKey) ? null : Utils.Base64StringToByteArray(PublicKey);
public string Certificate { get; set; }
public byte[] CertificateBytes =>
string.IsNullOrWhiteSpace(Certificate) ? null : Utils.Base64StringToByteArray(Certificate);
public uint Counter { get; set; }
public bool Compromised { get; set; }
}