mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
24 lines
532 B
C#
24 lines
532 B
C#
using System;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class KeysResponseModel : ResponseModel
|
|
{
|
|
public KeysResponseModel(User user)
|
|
: base("keys")
|
|
{
|
|
if(user == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(user));
|
|
}
|
|
|
|
PublicKey = user.PublicKey;
|
|
PrivateKey = user.PrivateKey;
|
|
}
|
|
|
|
public string PublicKey { get; set; }
|
|
public string PrivateKey { get; set; }
|
|
}
|
|
}
|