onboarding.modelsΒΆ
This module contains models related to onboarding configurations.
ClassesΒΆ
The onboarding status. |
|
Choices of onboarding protocols. |
|
Choices for onboarding pki protocols. |
|
Choices for no onboarding pki protocols. |
|
Extends a model for IntegerChoices stored as bitwise flags. |
|
Onboarding Configuration Model. |
|
No Onboarding Configuration Model. |
Module ContentsΒΆ
- class onboarding.models.OnboardingStatus(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.IntegerChoicesThe onboarding status.
- class onboarding.models.OnboardingProtocol(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.IntegerChoicesChoices of onboarding protocols.
- class onboarding.models.OnboardingPkiProtocol(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.IntegerChoicesChoices for onboarding pki protocols.
- class onboarding.models.NoOnboardingPkiProtocol(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.IntegerChoicesChoices for no onboarding pki protocols.
- class onboarding.models.AbstractPkiProtocolModel[source]ΒΆ
Extends a model for IntegerChoices stored as bitwise flags.
- add_pki_protocol(pki_protocol)[source]ΒΆ
Adds the provided PkiProtocol to the allowed protocols for onboarded devices.
- Parameters:
pki_protocol (T) β The PkiProtocol to allow.
- Return type:
None
- remove_pki_protocol(pki_protocol)[source]ΒΆ
Removes the provided PkiProtocol from the allowed protocols if it is allowed..
- Parameters:
pki_protocol (T) β The PkiProtocol to forbid.
- Return type:
None
- clear_pki_protocols()[source]ΒΆ
Clears all allowed PkiProtocols, that is, it deactivates application certificate issuance.
- Return type:
None
- has_pki_protocol(pki_protocol)[source]ΒΆ
Checks if the provided PkiProtocol is allowed.
- Parameters:
pki_protocol (T) β The PkiProtocol that is checked against the allowed ones.
- Returns:
Returns True if the provided PkiProtocol is allowed, False otherwise.
- Return type:
bool
- class onboarding.models.OnboardingConfigModel(*args, **kwargs)[source]ΒΆ
Bases:
AbstractPkiProtocolModel[OnboardingPkiProtocol],django.db.models.ModelOnboarding Configuration Model.
- save(*args, **kwargs)[source]ΒΆ
Executes full_clean() before saving.
- Parameters:
*args (Any) β Positional arguments are passed to super().save().
**kwargs (Any) β Keyword arguments are passed to super().save().
- Return type:
None
- _validate_case_opc_gds_push_onboarding()[source]ΒΆ
Validates case OnboardingProtocol.OPC_GDS_PUSH.
- Parameters:
error_messages β The container that gathers all error messages.
- Returns:
The error_messages gathered.
- Return type:
dict[str, str]
- _validate_case_manual_onboarding()[source]ΒΆ
Validates case OnboardingProtocol.MANUAL.
- Parameters:
error_messages β The container that gathers all error messages.
- Returns:
The error_messages gathered.
- Return type:
dict[str, str]
- _validate_case_cmp_idevid_onboarding()[source]ΒΆ
Validates case OnboardingProtocol.CMP_IDEVID.
- Parameters:
error_messages β The container that gathers all error messages.
- Returns:
The error_messages gathered.
- Return type:
dict[str, str]
Validates case OnboardingProtocol.CMP_SHARED_SECRET.
- Parameters:
error_messages β The container that gathers all error messages.
- Returns:
The error_messages gathered.
- Return type:
dict[str, str]
- class onboarding.models.NoOnboardingConfigModel(*args, **kwargs)[source]ΒΆ
Bases:
AbstractPkiProtocolModel[NoOnboardingPkiProtocol],django.db.models.ModelNo Onboarding Configuration Model.