LicenceDomainSecret

Description

sealed class Tinman.Core.Licensing.LicenceDomainSecret

Represents the secret data of a licence domain.

Public / Methods

Generate​Licence​Key

2 overloads


public method GenerateLicenceKey1 → (1)

request in : Path

[not-null]
Path to the licence request file, generated with LicenceDomain.RequestFile.

returns → string

The generated licence key, see LicenceDomain.LicenceKey.

Generates a licence key for this licence domain.

ValidatingException

If request in is invalid.

IOException

If an I/O error has occurred.


public method GenerateLicenceKey2 → (1)

request in : IJsonValue

[not-null]
The licence request, generated with LicenceDomain.RequestValue.

returns → string

The generated licence key, see LicenceDomain.LicenceKey.

Generates a licence key for this licence domain.

ValidatingException

If request in is invalid.

Lock​Array

2 overloads


public method LockArray1 → (2)

plain in : int8 [ ]

[not-null]
The plain byte array contents.

columns opt : int32 = 80

[>=0]
Number of text columns to output.

returns → string

The licence-locked string.

Licence-locks a plain byte array.


public method LockArray2 → (2)

plain in : int32 [ ]

[not-null]
The plain integer array contents.

columns opt : int32 = 80

[>=0]
Number of text columns to output.

returns → string

The licence-locked string.

Licence-locks a plain integer array.

Lock​File


public method LockFile → (1)

content in : Path

[not-null]
Path to the content file.

returns → Path

The canonical path to the licence-locked content file.

Licence-locks a content file.

The licence-locked content will be written to a file having the same path as content in, with this additional file suffix: '.lic'.

IOException

If an I/O error has occurred.

Lock​String


public method LockString → (2)

unlocked in : string

[not-null]
The plain string value.

columns opt : int32 = 80

[>=0]
Number of text columns to output.

returns → string

The licence-locked string value.

Licence-locks a plain string value.