pki.models.domainΒΆ

Module that contains the DomainModel.

ClassesΒΆ

DomainModel

Domain Model.

Module ContentsΒΆ

class pki.models.domain.DomainModel(*args, **kwargs)[source]ΒΆ

Bases: django.db.models.Model

Domain Model.

unique_name[source]ΒΆ
issuing_ca[source]ΒΆ
is_active[source]ΒΆ
created_at[source]ΒΆ
updated_at[source]ΒΆ
__repr__()[source]ΒΆ

Machine-readable representation of the Domain model instance.

Returns:

Machine-readable representation of the Domain model model instance.

Return type:

str

__str__()[source]ΒΆ

Human-readable representation of the Domain model instance.

Returns:

Human-readable representation of the Domain model model instance.

Return type:

str

save(**kwargs)[source]ΒΆ

Save the Domain model instance.

Parameters:

kwargs (Any)

Return type:

None

property signature_suite: trustpoint_core.oid.SignatureSuite[source]ΒΆ

Get the signature suite for the domain (based on its Issuing CA).

Return type:

trustpoint_core.oid.SignatureSuite

property public_key_info: trustpoint_core.oid.PublicKeyInfo[source]ΒΆ

Get the public key info for the domain (based on its Issuing CA).

Return type:

trustpoint_core.oid.PublicKeyInfo

clean()[source]ΒΆ

Validate that the issuing CA is not an auto-generated root CA.

Return type:

None

get_issuing_ca_or_value_error()[source]ΒΆ

Gets the corresponding Issuing CA.

Returns:

The corresponding Issuing CA.

Raises:

ValueError – If no Issuing CA is set.

Return type:

pki.models.IssuingCaModel