SerialBuilder
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
This class is used to generate serial license strings. The generated serial is a relative short license string. This class cannot be inherited.
Inheritance
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
SerialBuilder()
Create a new instance of class.
Properties
DomainName
Gets or sets the name of the domain.
Property Value
ExpireDate
Gets or sets the license expire date.
Property Value
ExpireDays
Gets or sets the number of days after which the generated license expires.
Property Value
int?
HardwareKey
Gets or sets the hardware key.
Property Value
LicenseId
Gets or sets the license identifier.
Property Value
LicenseInfo
Gets or sets general information stored into the license.
Property Value
PrivateKey
Gets or sets the private key used to sign the license. The key represented by a Base32 encoded string.
Property Value
PublicKey
Gets or sets the public key used to validate the license. The key represented by a Base32 encoded string.
Property Value
RunInstances
Gets or sets the number of application instances are allowed to run simultaneously for the generated license.
Property Value
int?
SerialFormat
Gets or sets the serial format .
Property Value
Methods
CreateKeyPair(ECDsaKeySize)
Creates key pair used to generate and validate a serial.
Parameters
Size of the key.
GenerateSerial(int)
Generates a new serial.
Parameters
(Optional) length of the tokens.
Returns
The serial.
IsValid(string)
Query if 'serial' is valid.
Parameters
The serial to validate.
Returns
true
if the serial valid, false
if is not valid.
Exceptions
Thrown when the serial argument is null.
Last updated