help_pages.pki_help_viewsΒΆ

This module contains all views concerning the help pages used within the pki app.

Module ContentsΒΆ

class help_pages.pki_help_views.BaseHelpView[source]ΒΆ

Bases: trustpoint.page_context.PageContextMixin, django.views.generic.detail.DetailView[pki.models.DevIdRegistration]

Base help view that constructs the context.

template_name = 'help/help_page.html'[source]ΒΆ
http_method_names = ('get',)[source]ΒΆ
model[source]ΒΆ
context_object_name = 'idevid_registration'[source]ΒΆ
page_category = 'pki'[source]ΒΆ
page_name = 'domains'[source]ΒΆ
strategy: help_pages.base.HelpPageStrategy[source]ΒΆ
get_context_data(**kwargs)[source]ΒΆ

Gets the context data and builds the HelpPage.

Parameters:

kwargs (Any) – Passed to super().get_context_data().

Returns:

The django context for the detail view.

Return type:

dict[str, Any]

class help_pages.pki_help_views.OnboardingCmpIdevIdDomainCredentialStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding cmp shared-secret help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.pki_help_views.OnboardingCmpIdevidRegistrationHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the CMP IDevID Registration, which displays the required OpenSSL commands.

strategy[source]ΒΆ
class help_pages.pki_help_views.OnboardingEstIdevIdDomainCredentialStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding EST shared-secret help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.pki_help_views.OnboardingEstIdevidRegistrationHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the EST IDevID Registration, which displays the required OpenSSL commands.

strategy[source]ΒΆ
class help_pages.pki_help_views.CrlDownloadHelpView[source]ΒΆ

Bases: trustpoint.page_context.PageContextMixin, django.views.generic.detail.DetailView[pki.models.CaModel]

Help view for downloading CRLs via curl commands.

template_name = 'help/help_page.html'[source]ΒΆ
http_method_names = ('get',)[source]ΒΆ
model[source]ΒΆ
context_object_name = 'ca'[source]ΒΆ
page_category = 'pki'[source]ΒΆ
page_name = 'issuing_cas'[source]ΒΆ
get_context_data(**kwargs)[source]ΒΆ

Gets the context data and builds the HelpPage for CRL download.

Parameters:

kwargs (Any)

Return type:

dict[str, Any]