Skip to content

TemplateV4

Source code in docs_src/capo_pca_connector_ad/types/template_v4.py
class TemplateV4(TypedDict, closed=True):
    certificate_validity: (
        "capo_pca_connector_ad.types.certificate_validity.CertificateValidity"
    )
    """<p>Certificate validity describes the validity and renewal periods of a certificate.</p>"""
    superseded_templates: NotRequired[
        "capo_pca_connector_ad.types.template_name_list.TemplateNameList"
    ]
    """<p>List of templates in Active Directory that are superseded by this template.</p>"""
    private_key_attributes: (
        "capo_pca_connector_ad.types.private_key_attributes_v4.PrivateKeyAttributesV4"
    )
    """<p>Private key attributes allow you to specify the minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v4 templates. V4 templates allow you to use either Key Storage Providers or Legacy Cryptographic Service Providers. You specify the cryptography provider category in private key flags.</p>"""
    private_key_flags: (
        "capo_pca_connector_ad.types.private_key_flags_v4.PrivateKeyFlagsV4"
    )
    """<p>Private key flags for v4 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, if an alternate signature algorithm should be used, and if certificates are renewed using the same private key.</p>"""
    enrollment_flags: (
        "capo_pca_connector_ad.types.enrollment_flags_v4.EnrollmentFlagsV4"
    )
    """<p>Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.</p>"""
    subject_name_flags: (
        "capo_pca_connector_ad.types.subject_name_flags_v4.SubjectNameFlagsV4"
    )
    """<p>Subject name flags describe the subject name and subject alternate name that is included in a certificate.</p>"""
    general_flags: "capo_pca_connector_ad.types.general_flags_v4.GeneralFlagsV4"
    """<p>General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.</p>"""
    hash_algorithm: NotRequired[
        "capo_pca_connector_ad.types.hash_algorithm.HashAlgorithm"
    ]
    """<p>Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.</p>"""
    extensions: "capo_pca_connector_ad.types.extensions_v4.ExtensionsV4"
    """<p>Extensions describe the key usage extensions and application policies for a template.</p>"""

certificate_validity instance-attribute

certificate_validity: CertificateValidity

Certificate validity describes the validity and renewal periods of a certificate.

enrollment_flags instance-attribute

enrollment_flags: EnrollmentFlagsV4

Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.

extensions instance-attribute

extensions: ExtensionsV4

Extensions describe the key usage extensions and application policies for a template.

general_flags instance-attribute

general_flags: GeneralFlagsV4

General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.

hash_algorithm instance-attribute

hash_algorithm: NotRequired[HashAlgorithm]

Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.

private_key_attributes instance-attribute

private_key_attributes: PrivateKeyAttributesV4

Private key attributes allow you to specify the minimal key length, key spec, key usage, and cryptographic providers for the private key of a certificate for v4 templates. V4 templates allow you to use either Key Storage Providers or Legacy Cryptographic Service Providers. You specify the cryptography provider category in private key flags.

private_key_flags instance-attribute

private_key_flags: PrivateKeyFlagsV4

Private key flags for v4 templates specify the client compatibility, if the private key can be exported, if user input is required when using a private key, if an alternate signature algorithm should be used, and if certificates are renewed using the same private key.

subject_name_flags instance-attribute

subject_name_flags: SubjectNameFlagsV4

Subject name flags describe the subject name and subject alternate name that is included in a certificate.

superseded_templates instance-attribute

superseded_templates: NotRequired[TemplateNameList]

List of templates in Active Directory that are superseded by this template.