ILicenseBuilder
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
Interface for license builder.
Extension Methods
Licenseable.AddLicense<ILicenseBuilder>(ILicenseBuilder, ILicense), Licenseable.Load(ILicenseBuilder, string), Licenseable.RemoveLicense<ILicenseBuilder>(ILicenseBuilder, ILicense), Licenseable.Save<ILicenseBuilder>(ILicenseBuilder, string), Licenseable.SignWith(ILicenseBuilder, ISignatureProvider), Licenseable.SignWithKeys(ILicenseBuilder, string, string), Licenseable.ToReadableString(ILicenseBuilder, string), Licenseable.ValidateSignature(ILicenseBuilder)
Properties
SignatureProvider
Gets or sets the signature provider.
Property Value
Methods
AddOrUpdate(ILicense)
Adds a with a given key to the builder if the license does not already exists, or updates the if the key already exists.
Parameters
Name | Description |
---|---|
The object. |
Load(Stream)
Loads the license from the specified file.
Parameters
Name | Description |
---|---|
Specify the input stream. |
Remove(ILicense)
Removes a with a given key from the builder.
Parameters
Name | Description |
---|---|
The object to be removed. |
Returns
Name | Description |
---|---|
true if it succeeds, false if it fails. |
Save(Stream)
Saves a copy of the license into the specified file.
Parameters
Name | Description |
---|---|
Specify the output stream. |
Sign()
Add a signature to the license object.
ToLicenses()
Converts the current builder state to a collection of objects.
Returns
Name | Description |
---|---|
The current state as a collection of objects. |
Validate()
Validates the license signature.
Returns
Name | Description |
---|---|
true if it succeeds, false if it fails. |
Last updated