1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 19:23:45 +00:00

license hash

This commit is contained in:
Kyle Spearrin
2017-08-16 15:16:56 -04:00
parent 92ab3db4c4
commit d9cd7880a6
4 changed files with 55 additions and 11 deletions

View File

@@ -11,8 +11,11 @@ namespace Bit.Core.Models.Business
DateTime? Refresh { get; set; }
DateTime? Expires { get; set; }
bool Trial { get; set; }
string Hash { get; set; }
string Signature { get; set; }
byte[] GetSignatureData();
byte[] SignatureBytes { get; }
byte[] GetDataBytes(bool forHash = false);
byte[] ComputeHash();
bool VerifySignature(X509Certificate2 certificate);
byte[] Sign(X509Certificate2 certificate);
}