Interface TemplateV2.Builder

    • Method Detail

      • certificateValidity

        TemplateV2.Builder certificateValidity​(CertificateValidity certificateValidity)

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

        Parameters:
        certificateValidity - Certificate validity describes the validity and renewal periods of a certificate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • enrollmentFlags

        TemplateV2.Builder enrollmentFlags​(EnrollmentFlagsV2 enrollmentFlags)

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

        Parameters:
        enrollmentFlags - Enrollment flags describe the enrollment settings for certificates such as using the existing private key and deleting expired or revoked certificates.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • extensions

        TemplateV2.Builder extensions​(ExtensionsV2 extensions)

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

        Parameters:
        extensions - Extensions describe the key usage extensions and application policies for a template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • generalFlags

        TemplateV2.Builder generalFlags​(GeneralFlagsV2 generalFlags)

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

        Parameters:
        generalFlags - General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateKeyAttributes

        TemplateV2.Builder privateKeyAttributes​(PrivateKeyAttributesV2 privateKeyAttributes)

        Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. V2 templates allow you to use Legacy Cryptographic Service Providers.

        Parameters:
        privateKeyAttributes - Private key attributes allow you to specify the minimal key length, key spec, and cryptographic providers for the private key of a certificate for v2 templates. V2 templates allow you to use Legacy Cryptographic Service Providers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • privateKeyFlags

        TemplateV2.Builder privateKeyFlags​(PrivateKeyFlagsV2 privateKeyFlags)

        Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.

        Parameters:
        privateKeyFlags - Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subjectNameFlags

        TemplateV2.Builder subjectNameFlags​(SubjectNameFlagsV2 subjectNameFlags)

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

        Parameters:
        subjectNameFlags - Subject name flags describe the subject name and subject alternate name that is included in a certificate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • supersededTemplates

        TemplateV2.Builder supersededTemplates​(Collection<String> supersededTemplates)

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

        Parameters:
        supersededTemplates - List of templates in Active Directory that are superseded by this template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • supersededTemplates

        TemplateV2.Builder supersededTemplates​(String... supersededTemplates)

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

        Parameters:
        supersededTemplates - List of templates in Active Directory that are superseded by this template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.