pki.views.domainsΒΆ
Views for managing Domains.
ClassesΒΆ
Mixin which adds context_data for the PKI -> Issuing CAs pages. |
|
Domain Table View. |
|
View to create a new domain. |
|
Mixin to add a table of DevID Registrations to the domain config view. |
|
View to configure a domain, allows adding DevID registration patterns. |
|
View to display domain details. |
|
View to confirm the deletion of multiple Domains. |
|
View to create a new DevID Registration. |
|
View to delete a DevID Registration. |
|
View to select the method to add a DevID Registration pattern. |
|
View to list certificates issued by a specific Issuing CA for a Domain. |
|
View to select the protocol for IDevID enrollment. |
Module ContentsΒΆ
- class pki.views.domains.DomainContextMixin[source]ΒΆ
Bases:
trustpoint.views.base.ContextDataMixinMixin which adds context_data for the PKI -> Issuing CAs pages.
- class pki.views.domains.DomainTableView[source]ΒΆ
Bases:
DomainContextMixin,trustpoint.views.base.SortableTableMixin[pki.models.DomainModel],django.views.generic.list.ListView[pki.models.DomainModel]Domain Table View.
- class pki.views.domains.DomainCreateView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.edit.CreateView[pki.models.DomainModel,django.forms.BaseModelForm[pki.models.DomainModel]]View to create a new domain.
- get_form(_form_class=None)[source]ΒΆ
Override get_form to filter out autogen root CAs.
- Parameters:
_form_class (Any)
- Return type:
Any
- form_valid(form)[source]ΒΆ
Handle the case where the form is valid.
- Parameters:
form (django.forms.BaseModelForm[pki.models.DomainModel])
- Return type:
django.http.HttpResponse
- class pki.views.domains.DomainDevIdRegistrationTableMixin[source]ΒΆ
Bases:
trustpoint.views.base.SortableTableMixin[pki.models.DevIdRegistration],trustpoint.views.base.ListInDetailViewMixin to add a table of DevID Registrations to the domain config view.
- get_queryset()[source]ΒΆ
Gets the queryset for the DevID Registration table.
- Return type:
django.db.models.QuerySet[pki.models.DevIdRegistration]
- class pki.views.domains.DomainConfigView[source]ΒΆ
Bases:
DomainContextMixin,DomainDevIdRegistrationTableMixin,trustpoint.views.base.ListInDetailViewView to configure a domain, allows adding DevID registration patterns.
- class pki.views.domains.DomainDetailView[source]ΒΆ
Bases:
DomainContextMixin,DomainDevIdRegistrationTableMixin,trustpoint.views.base.ListInDetailViewView to display domain details.
- class pki.views.domains.DomainCaBulkDeleteConfirmView[source]ΒΆ
Bases:
DomainContextMixin,trustpoint.views.base.BulkDeleteViewView to confirm the deletion of multiple Domains.
- class pki.views.domains.DevIdRegistrationCreateView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.edit.FormView[pki.forms.DevIdRegistrationForm]View to create a new DevID Registration.
- get_context_data(**kwargs)[source]ΒΆ
Add additional context data.
- Parameters:
kwargs (Any)
- Return type:
dict[str, Any]
- get_domain()[source]ΒΆ
Get domain from URL pk (GET) or form data (POST).
- Return type:
pki.models.DomainModel | None
- get_truststore(truststore_id)[source]ΒΆ
Fetch the truststore based on the primary key passed in the URL.
- Parameters:
truststore_id (int)
- Return type:
- class pki.views.domains.DevIdRegistrationDeleteView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.DeleteView[pki.models.DevIdRegistration,Any]View to delete a DevID Registration.
- class pki.views.domains.DevIdMethodSelectView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.edit.FormView[pki.forms.DevIdAddMethodSelectForm]View to select the method to add a DevID Registration pattern.
- get_context_data(**kwargs)[source]ΒΆ
Add additional context data.
- Parameters:
kwargs (Any)
- Return type:
dict[str, Any]
- class pki.views.domains.IssuedCertificatesView[source]ΒΆ
Bases:
trustpoint.views.base.ContextDataMixin,django.views.generic.list.ListView[pki.models.CertificateModel]View to list certificates issued by a specific Issuing CA for a Domain.
- get_queryset()[source]ΒΆ
Return only certificates associated with the domainβs issued credentials.
- Return type:
django.db.models.QuerySet[pki.models.CertificateModel]
- class pki.views.domains.OnboardingMethodSelectIdevidHelpView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.detail.DetailView[pki.models.DevIdRegistration]View to select the protocol for IDevID enrollment.