mirror of
https://github.com/NecroticBamboo/QRBee.git
synced 2025-12-21 12:11:53 +00:00
21 lines
560 B
C#
21 lines
560 B
C#
namespace QRBee.Core.Security
|
|
{
|
|
public class ReadableCertificateRequest
|
|
{
|
|
private byte[] _signature;
|
|
|
|
public string SubjectName { get; set; }
|
|
|
|
public StringRSAParameters RsaPublicKey { get; set; }
|
|
|
|
public string Signature
|
|
{
|
|
get => _signature != null ? Convert.ToBase64String(_signature): null;
|
|
set => _signature = value != null ? Convert.FromBase64String(value) : null;
|
|
}
|
|
|
|
public string AsDataForSignature() => $"{SubjectName}|{RsaPublicKey.ConvertToJson()}";
|
|
|
|
}
|
|
}
|