Service: License

This API is officially released and maintained.

License service to assign a product variant and metadata to a Qb2.

The license is cryptographically singed and configured during production. A configured license can only be replaced by another valid license for this device.

A license contains the specific product variant and can additionally contain arbitrary metadata for the specfic customer or application.

Table 1. Available methods
Method Request Response

Get

google.protobuf.Empty

LicenseGetResponse

Set

LicenseSetRequest

google.protobuf.Empty

Activate

LicenseActivateRequest

LicenseActivateResponse

Get

Get configured license, and the activation of a QbOS installation

Response

Response containing licensed product variant and metadata

Table 2. Available fields in blickfeld.secure.services.LicenseGetResponse
Field Type Default Unit

license

data.License

-

-

The configured license

activation

Activation

-

-

Unset on a device that is not a QbOS installation

Activation

Activation of a QbOS installation: locked until an activation file issued for its fingerprint is applied

Table 3. Available fields in blickfeld.secure.services.LicenseGetResponse.Activation
Field Type Default Unit

state

State

-

-

Whether the installation is activated on this machine

fingerprint

string

-

-

Identifies this installation on this machine; an activation file is issued for it

State

Whether the installation is activated on this machine

Table 4. Available values for blickfeld.secure.services.LicenseGetResponse.Activation.State enum
Name Value Description

STATE_UNSPECIFIED

0

Not reported

STATE_LOCKED

1

Waiting for an activation file

STATE_ACTIVATED

2

Activated on this machine

Set

Set license

Request

Request to assign license to this Qb2

Table 5. Available fields in blickfeld.secure.services.LicenseSetRequest
Field Type Default Unit

token

string

-

-

JWT license string

Activate

Activate a locked QbOS installation with an activation file issued for its fingerprint. The file carries serial number, device credentials, license and the keys of the installation. The device reboots afterwards.

Request

Activation file to apply

Table 6. Available fields in blickfeld.secure.services.LicenseActivateRequest
Field Type Default Unit

file

bytes

-

-

Serialized blickfeld.secure.data.Activation.File

admin_password

string

-

-

Password of the administrator account set up with the activation

admin_username

string

-

-

Name of the administrator account created with admin_password, admin if empty

Response

Result of an activation

Table 7. Available fields in blickfeld.secure.services.LicenseActivateResponse
Field Type Default Unit

token

string

-

-

Access token of the administrator account created with admin_password, for a setup to continue signed in after the reboot