Domain

Description

abstract class Tinman.Licence.Domain

The Domain class provides low-level functions for checking licence keys and unlocking protected data.

Public / Constants

SecondsPerMonth


public constant SecondsPerMonth → (2629800:int32)

Average number of seconds per month.

TimestampTicksPerYear


public constant TimestampTicksPerYear → (54:int32)

Number of timestamp ticks per year (rounded up).

Public / Constructors

Tinman


public static method Tinman → ()

returns → Domain

The Domain object.

Returns the Domain object for the Tinman 3D SDK.

Public / Methods

Content


public static method Content → (3)

input in : int8 [ ]

Input buffer holding the locked content bytes.

key in : int8 [ ]

The binary licence key.

output in : int8 [ ]

Output buffer for unlocked content bytes.

returns → int32

= 0 : The number of bytes that have been written to output in.
< 0 : The required output buffer length (negated), if null or too small.

Unlocks the given protected content.

Key


public method Key → (1)

key in : int8 [ ]

The binary licence key.

returns → int32

> 0 : the domain has been unlocked.
= 0 : the licence key is valid but cannot unlock this domain.
< 0 : the licence key is invalid.

Tries to unlock this domain using the given binary licence key.

Locked


[Pure]
public abstract method Locked → (1)

locked in : int32

The data item ID.

returns → string

The locked data item or null.

Returns a locked data item.

TimestampTicksToUtc


public static method TimestampTicksToUtc → (1)

ticks in : int32

The timestamp ticks (weeks).

returns → int64

The millisecond ticks.

Converts the given UTC into timestamp ticks (weeks) to milliseconds since 1970/01/01.

TimestampUtcToTicks


public static method TimestampUtcToTicks → (1)

utc in : int64

The millisecond ticks.

returns → int32

The timestamp ticks (weeks).

Converts the given milliseconds since 1970/01/01 UTC into timestamp ticks (weeks).

ToUpper


[Pure]
public static method ToUpper → (1)

in : char

The character.

returns → char

The uppercase character.

Returns the culture-invariant uppercase of the given character.

Unlock


public method Unlock → (2)

input in : int8 [ ]

Input buffer holding the locked data item bytes.

output in : int8 [ ]

Output buffer for unlocked data item bytes.

returns → int32

= 0 : The number of bytes that have been written to output in.
< 0 : The required output buffer length (negated), if null or too small.

Unlocks the given data item.

Public / Attributes

SystemTime


public static attribute SystemTime → (get)

value : int64

The system time, in milliseconds after 1970/01/01 00:00:00 UTC (i.e. the unix epoch).

Returns the system time.

Protected / Constructors

Domain


protected constructor Domain → ()

Creates a new instance of Domain.