LicenceMetadata

Description

sealed class Tinman.Core.Licensing.LicenceMetadata

Represents licence metadata information.

Public / Constructors

FromRequest


public static method FromRequest → (1)

licenceRequest in : Path

[not-null]
Path to licence request file.

returns → LicenceMetadata

The licence metadata.

Creates a new instance of LicenceMetadata from the given licence request.

IOException

If an I/O error has occurred.

ValidatingException

If the contents of licenceRequest in are malformed.

LicenceMetadata


public constructor LicenceMetadata → (6)

timestamp in : int32

The timestamp ticks (weeks) or -1 for current.

userName in : string

The user name or * for any.

domainName in : string

The domain name or * for any.

productName in : string

The product name or * for any.

companyName in : string

The company name or * for any.

copyrightNotice in : string

The copyright notice or * for any.

Creates a new instance of LicenceMetadata.

Public / Methods

IsValidFor


public method IsValidFor → (1)

type in : LicenceType

The licence type.

returns → bool

true if all metadata values are valid for type in, false if not.

Are the metadata values valid for the given licence type?

ToLicenceType


public method ToLicenceType → (1)

type in : LicenceType

The licence type.

returns → LicenceMetadata

The reduced metadata that contains placeholders for metadata information that is not bound by the licence type in.

Transforms this full metadata to the reduced metadata for the given licence type.

ToTimestamp


public method ToTimestamp → (1)

timestamp in : int32

The new Timestamp value.

returns → LicenceMetadata

The updated metadata.

Updates the Timestamp value of this metadata.

Public / Attributes

CompanyName


public readonly attribute CompanyName → (string)

The company name or '*' for any.

CopyrightNotice


public readonly attribute CopyrightNotice → (string)

The legal copyright notice or '*' for any.

DomainName


public readonly attribute DomainName → (string)

The user domain or '*' for any.

ProductName


public readonly attribute ProductName → (string)

The product name or '*' for any.

Timestamp


public readonly attribute Timestamp → (int32)

The timestamp index.

Type


public readonly attribute Type → (LicenceType)

The licence type.

UserName


public readonly attribute UserName → (string)

The user name or '*' for any.