signer.formsΒΆ
Contains Logic for Form on Add/Edit Signer Page.
Module ContentsΒΆ
- signer.forms.get_private_key_location_from_config()[source]ΒΆ
Determine the appropriate PrivateKeyLocation based on KeyStorageConfig.
- Return type:
trustpoint_core.serializer.PrivateKeyLocation
- class signer.forms.SignerAddMethodSelectForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]ΒΆ
Bases:
django.forms.FormForm for selecting the method to add a Signer.
- class signer.forms.SignerAddFileTypeSelectForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]ΒΆ
Bases:
django.forms.FormForm for selecting the file type when importing a Signer.
- class signer.forms.SignerAddFileImportPkcs12Form(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]ΒΆ
Bases:
trustpoint.logger.LoggerMixin,django.forms.FormForm for importing an Signer using a PKCS#12 file.
- class signer.forms.SignerAddFileImportSeparateFilesForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]ΒΆ
Bases:
trustpoint.logger.LoggerMixin,django.forms.FormForm for importing a Signer using separate files.
- clean_private_key_file()[source]ΒΆ
Validates and parses the uploaded private key file.
- Return type:
trustpoint_core.serializer.PrivateKeySerializer
- clean_signer_certificate()[source]ΒΆ
Validates and parses the uploaded signer certificate file.
- Return type:
trustpoint_core.serializer.CertificateSerializer
- class signer.forms.SignHashForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]ΒΆ
Bases:
trustpoint.logger.LoggerMixin,django.forms.FormForm for signing a hash value with a selected signer.