mirror of
https://github.com/bitwarden/server
synced 2025-12-23 03:33:35 +00:00
license verification services for user/org
This commit is contained in:
17
src/Core/Models/Business/ILicense.cs
Normal file
17
src/Core/Models/Business/ILicense.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
namespace Bit.Core.Models.Business
|
||||
{
|
||||
public interface ILicense
|
||||
{
|
||||
string LicenseKey { get; set; }
|
||||
int Version { get; set; }
|
||||
DateTime Issued { get; set; }
|
||||
DateTime Expires { get; set; }
|
||||
bool Trial { get; set; }
|
||||
string Signature { get; set; }
|
||||
byte[] GetSignatureData();
|
||||
bool VerifySignature(X509Certificate2 certificate);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user