mirror of
https://github.com/bitwarden/server.git
synced 2025-06-14 15:00:49 -05:00
21 lines
579 B
C#
21 lines
579 B
C#
using System.Security.Cryptography.X509Certificates;
|
|
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Models.Business;
|
|
|
|
public interface ILicense
|
|
{
|
|
LicenseType LicenseType { get; set; }
|
|
string LicenseKey { get; set; }
|
|
int Version { get; set; }
|
|
DateTime Issued { get; set; }
|
|
DateTime? Refresh { get; set; }
|
|
DateTime? Expires { get; set; }
|
|
bool Trial { get; set; }
|
|
string Hash { get; set; }
|
|
string Signature { get; set; }
|
|
string Token { get; set; }
|
|
byte[] GetDataBytes(bool forHash = false);
|
|
byte[] Sign(X509Certificate2 certificate);
|
|
}
|