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. |
|
View to edit a 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. |
|
Help view for the IDevID Registration, which displays the required OpenSSL commands. |
|
Help view for the CMP IDevID Registration, which displays the required OpenSSL commands. |
|
Help view for the EST IDevID Registration, which displays the required OpenSSL commands. |
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,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.DomainUpdateView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.edit.UpdateView[pki.models.DomainModel]View to edit a domain.
- class pki.views.domains.DomainDevIdRegistrationTableMixin(**kwargs)[source]ΒΆ
Bases:
trustpoint.views.base.SortableTableMixin,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(**kwargs)[source]ΒΆ
Bases:
DomainContextMixin,DomainDevIdRegistrationTableMixin,trustpoint.views.base.ListInDetailViewView to configure a domain, allows adding DevID registration patterns.
- class pki.views.domains.DomainDetailView(**kwargs)[source]ΒΆ
Bases:
DomainContextMixin,DomainDevIdRegistrationTableMixin,trustpoint.views.base.ListInDetailViewView to display domain details.
- class pki.views.domains.DomainCaBulkDeleteConfirmView(**kwargs)[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_truststore(truststore_id)[source]ΒΆ
Fetch the domain based on the primary key passed in the URL.
- Parameters:
truststore_id (int)
- Return type:
- class pki.views.domains.DevIdRegistrationDeleteView(**kwargs)[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.DeleteViewView to delete a DevID Registration.
- class pki.views.domains.DevIdMethodSelectView(**kwargs)[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.edit.FormViewView 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.
- class pki.views.domains.OnboardingIdevidRegistrationHelpView[source]ΒΆ
Bases:
DomainContextMixin,django.views.generic.detail.DetailView[pki.models.DevIdRegistration]Help view for the IDevID Registration, which displays the required OpenSSL commands.
- class pki.views.domains.OnboardingCmpIdevidRegistrationHelpView[source]ΒΆ
Bases:
OnboardingIdevidRegistrationHelpViewHelp view for the CMP IDevID Registration, which displays the required OpenSSL commands.
- class pki.views.domains.OnboardingEstIdevidRegistrationHelpView[source]ΒΆ
Bases:
OnboardingIdevidRegistrationHelpViewHelp view for the EST IDevID Registration, which displays the required OpenSSL commands.