nitrokey.trussed.admin_app

class nitrokey.trussed.admin_app.AdminApp

ベースクラス: object

__init__(device)
パラメータ:

device (TrussedDevice)

戻り値の型:

None

factory_reset()
戻り値の型:

bool

factory_reset_app(application)
パラメータ:

application (str)

戻り値の型:

bool

get_config(key)
パラメータ:

key (str)

戻り値の型:

str

has_config(key)
パラメータ:

key (str)

戻り値の型:

bool

is_locked()
戻り値の型:

bool

list_available_fields()
戻り値の型:

list[ConfigField]

reboot(mode=BootMode.FIRMWARE)
パラメータ:

mode (BootMode)

戻り値の型:

bool

rng()
戻り値の型:

bytes

se050_tests()
戻り値の型:

bytes | None

set_config(key, value)
パラメータ:
  • key (str)

  • value (str)

戻り値の型:

None

status()
戻り値の型:

Status

uuid()
戻り値の型:

Uuid | None

version()
戻り値の型:

Version

class nitrokey.trussed.admin_app.AdminCommand

ベースクラス: Enum

is_legacy_command()
戻り値の型:

bool

FACTORY_RESET = 132
FACTORY_RESET_APP = 133
GET_CONFIG = 130
LIST_AVAILABLE_FIELDS = 134
LOCKED = 99
REBOOT = 83
RNG = 96
SET_CONFIG = 131
STATUS = 128
TEST_SE050 = 129
UPDATE = 81
UUID = 98
VERSION = 97
class nitrokey.trussed.admin_app.BootMode

ベースクラス: Enum

BOOTROM = 2
FIRMWARE = 1
class nitrokey.trussed.admin_app.ConfigField

ベースクラス: object

ConfigField(name: str, requires_touch_confirmation: bool, requires_reboot: bool, destructive: bool, ty: ニトロキー.trussed.admin_app.ConfigFieldType)。

__init__(name, requires_touch_confirmation, requires_reboot, destructive, ty)
パラメータ:
  • name (str)

  • requires_touch_confirmation (bool)

  • requires_reboot (bool)

  • destructive (bool)

  • ty (ConfigFieldType)

戻り値の型:

None

destructive: bool
name: str
requires_reboot: bool
requires_touch_confirmation: bool
ty: ConfigFieldType
class nitrokey.trussed.admin_app.ConfigFieldType

ベースクラス: Enum

classmethod from_int(i)
パラメータ:

i (int)

戻り値の型:

ConfigFieldType | None

is_valid(value)
パラメータ:

value (str)

戻り値の型:

bool

BOOL = 0
U8 = 1
class nitrokey.trussed.admin_app.ConfigStatus

ベースクラス: Enum

classmethod check(i, msg)
パラメータ:
  • i (int)

  • msg (str)

戻り値の型:

None

classmethod from_int(i)
パラメータ:

i (int)

戻り値の型:

ConfigStatus | None

DATA_TOO_LONG = 7
DESERIALIZATION_FAILED = 3
INVALID_KEY = 5
INVALID_VALUE = 6
READ_FAILED = 1
SERIALIZATION_FAILED = 4
SUCCESS = 0
WRITE_FAILED = 2
class nitrokey.trussed.admin_app.FactoryResetStatus

ベースクラス: Enum

classmethod check(i, msg)
パラメータ:
  • i (int)

  • msg (str)

戻り値の型:

None

classmethod from_int(i)
パラメータ:

i (int)

戻り値の型:

FactoryResetStatus | None

APP_FAILED_PARSE = 3
APP_NOT_ALLOWED = 2
NOT_CONFIRMED = 1
SUCCESS = 0
class nitrokey.trussed.admin_app.InitStatus

ベースクラス: IntFlag

__new__(value)
is_error()
戻り値の型:

bool

CONFIG_ERROR = 32
EXTERNAL_FLASH_ERROR = 4
INTERNAL_FLASH_ERROR = 2
MIGRATION_ERROR = 8
NFC_ERROR = 1
RNG_ERROR = 64
SE050_ERROR = 16
class nitrokey.trussed.admin_app.Status

ベースクラス: object

ステータス(init_status:Optional[nitrokey.trussed.admin_app.InitStatus] = None, ifs_blocks:Optional[int] = None, efs_blocks:Optional[int] = None, variant:オプション[nitrokey.trussed.admin_app.Variant] = None)

__init__(init_status=None, ifs_blocks=None, efs_blocks=None, variant=None)
パラメータ:
  • init_status (InitStatus | None)

  • ifs_blocks (int | None)

  • efs_blocks (int | None)

  • variant (Variant | None)

戻り値の型:

None

efs_blocks: int | None = None
ifs_blocks: int | None = None
init_status: InitStatus | None = None
variant: Variant | None = None
class nitrokey.trussed.admin_app.Variant

ベースクラス: Enum

LPC55 = 1
NRF52 = 2
USBIP = 0