LicenseConfig class final

How a licence is set up.

Constructors

LicenseConfig({required String product, required String apiBaseUrl, List<Map<String, Object?>>? publicJwks, Map<String, Object?>? publicJwk, int major = 1, String? deviceName, bool deviceHold = true, Duration httpTimeout = defaultHttpTimeout, List<String> revokedLicenseFiles = const [], LicenseAdapters adapters = const LicenseAdapters()})
const

Properties

adapters → LicenseAdapters
Adapter overrides.
final
apiBaseUrl → String
The KeyGrant API base, e.g. https://api.keygrant.dev.
final
deviceHold → bool
Whether a licence is held to the device it was activated on. False for a product on non-persistent, pooled VDI: no kind is then reported for its fingerprint, no lease is judged by its device, and the server is told no fingerprints to check. The device limit still counts seats.
final
deviceName → String?
A human device name reported to the server (cut to 120 UTF-16 units).
final
hashCode → int
The hash code for this object.
no setterinherited
httpTimeout → Duration
How long a request may take before the SDK abandons it, for every call that names no shorter bound of its own.
final
major → int
The running app's major version. Read as the server reads a version: a 0.x build (0) runs as major 1, and so does anything below it.
final
product → String
The product slug, matching the KeyGrant product.
final
publicJwk → Map<String, Object?>?
One public key (JWK): a key set of one. Give this or publicJwks.
final
publicJwks → List<Map<String, Object?>>?
The product's public keys (JWKs), embedded at build time: the key that signs its leases, and the next one once the product has one staged (the keys of GET /v1/products/<product>/pubkey; parseJwkSet reads that answer's text). Give this or publicJwk.
final
revokedLicenseFiles → List<String>
The ids of licence files this build refuses (a file's fid), matched exactly.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited