Interface TemplateV4.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TemplateV4.Builder,TemplateV4>,SdkBuilder<TemplateV4.Builder,TemplateV4>,SdkPojo
- Enclosing class:
- TemplateV4
public static interface TemplateV4.Builder extends SdkPojo, CopyableBuilder<TemplateV4.Builder,TemplateV4>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TemplateV4.BuildercertificateValidity(Consumer<CertificateValidity.Builder> certificateValidity)Certificate validity describes the validity and renewal periods of a certificate.TemplateV4.BuildercertificateValidity(CertificateValidity certificateValidity)Certificate validity describes the validity and renewal periods of a certificate.default TemplateV4.BuilderenrollmentFlags(Consumer<EnrollmentFlagsV4.Builder> enrollmentFlags)Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.TemplateV4.BuilderenrollmentFlags(EnrollmentFlagsV4 enrollmentFlags)Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.default TemplateV4.Builderextensions(Consumer<ExtensionsV4.Builder> extensions)Extensions describe the key usage extensions and application policies for a template.TemplateV4.Builderextensions(ExtensionsV4 extensions)Extensions describe the key usage extensions and application policies for a template.default TemplateV4.BuildergeneralFlags(Consumer<GeneralFlagsV4.Builder> generalFlags)General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.TemplateV4.BuildergeneralFlags(GeneralFlagsV4 generalFlags)General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.TemplateV4.BuilderhashAlgorithm(String hashAlgorithm)Specifies the hash algorithm used to hash the private key.TemplateV4.BuilderhashAlgorithm(HashAlgorithm hashAlgorithm)Specifies the hash algorithm used to hash the private key.default TemplateV4.BuilderprivateKeyAttributes(Consumer<PrivateKeyAttributesV4.Builder> privateKeyAttributes)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.TemplateV4.BuilderprivateKeyAttributes(PrivateKeyAttributesV4 privateKeyAttributes)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.default TemplateV4.BuilderprivateKeyFlags(Consumer<PrivateKeyFlagsV4.Builder> privateKeyFlags)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.TemplateV4.BuilderprivateKeyFlags(PrivateKeyFlagsV4 privateKeyFlags)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.default TemplateV4.BuildersubjectNameFlags(Consumer<SubjectNameFlagsV4.Builder> subjectNameFlags)Subject name flags describe the subject name and subject alternate name that is included in a certificate.TemplateV4.BuildersubjectNameFlags(SubjectNameFlagsV4 subjectNameFlags)Subject name flags describe the subject name and subject alternate name that is included in a certificate.TemplateV4.BuildersupersededTemplates(String... supersededTemplates)List of templates in Active Directory that are superseded by this template.TemplateV4.BuildersupersededTemplates(Collection<String> supersededTemplates)List of templates in Active Directory that are superseded by this template.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
certificateValidity
TemplateV4.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.
-
certificateValidity
default TemplateV4.Builder certificateValidity(Consumer<CertificateValidity.Builder> certificateValidity)
Certificate validity describes the validity and renewal periods of a certificate.
This is a convenience method that creates an instance of theCertificateValidity.Builderavoiding the need to create one manually viaCertificateValidity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocertificateValidity(CertificateValidity).- Parameters:
certificateValidity- a consumer that will call methods onCertificateValidity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
certificateValidity(CertificateValidity)
-
enrollmentFlags
TemplateV4.Builder enrollmentFlags(EnrollmentFlagsV4 enrollmentFlags)
Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.
- Parameters:
enrollmentFlags- Enrollment flags describe the enrollment settings for certificates 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.
-
enrollmentFlags
default TemplateV4.Builder enrollmentFlags(Consumer<EnrollmentFlagsV4.Builder> enrollmentFlags)
Enrollment flags describe the enrollment settings for certificates using the existing private key and deleting expired or revoked certificates.
This is a convenience method that creates an instance of theEnrollmentFlagsV4.Builderavoiding the need to create one manually viaEnrollmentFlagsV4.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenrollmentFlags(EnrollmentFlagsV4).- Parameters:
enrollmentFlags- a consumer that will call methods onEnrollmentFlagsV4.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
enrollmentFlags(EnrollmentFlagsV4)
-
extensions
TemplateV4.Builder extensions(ExtensionsV4 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.
-
extensions
default TemplateV4.Builder extensions(Consumer<ExtensionsV4.Builder> extensions)
Extensions describe the key usage extensions and application policies for a template.
This is a convenience method that creates an instance of theExtensionsV4.Builderavoiding the need to create one manually viaExtensionsV4.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toextensions(ExtensionsV4).- Parameters:
extensions- a consumer that will call methods onExtensionsV4.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
extensions(ExtensionsV4)
-
generalFlags
TemplateV4.Builder generalFlags(GeneralFlagsV4 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.
-
generalFlags
default TemplateV4.Builder generalFlags(Consumer<GeneralFlagsV4.Builder> generalFlags)
General flags describe whether the template is used for computers or users and if the template can be used with autoenrollment.
This is a convenience method that creates an instance of theGeneralFlagsV4.Builderavoiding the need to create one manually viaGeneralFlagsV4.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togeneralFlags(GeneralFlagsV4).- Parameters:
generalFlags- a consumer that will call methods onGeneralFlagsV4.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
generalFlags(GeneralFlagsV4)
-
hashAlgorithm
TemplateV4.Builder hashAlgorithm(String hashAlgorithm)
Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.
- Parameters:
hashAlgorithm- Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HashAlgorithm,HashAlgorithm
-
hashAlgorithm
TemplateV4.Builder hashAlgorithm(HashAlgorithm hashAlgorithm)
Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.
- Parameters:
hashAlgorithm- Specifies the hash algorithm used to hash the private key. Hash algorithm can only be specified when using Key Storage Providers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HashAlgorithm,HashAlgorithm
-
privateKeyAttributes
TemplateV4.Builder privateKeyAttributes(PrivateKeyAttributesV4 privateKeyAttributes)
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.
- Parameters:
privateKeyAttributes- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKeyAttributes
default TemplateV4.Builder privateKeyAttributes(Consumer<PrivateKeyAttributesV4.Builder> privateKeyAttributes)
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.
This is a convenience method that creates an instance of thePrivateKeyAttributesV4.Builderavoiding the need to create one manually viaPrivateKeyAttributesV4.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateKeyAttributes(PrivateKeyAttributesV4).- Parameters:
privateKeyAttributes- a consumer that will call methods onPrivateKeyAttributesV4.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
privateKeyAttributes(PrivateKeyAttributesV4)
-
privateKeyFlags
TemplateV4.Builder privateKeyFlags(PrivateKeyFlagsV4 privateKeyFlags)
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.
- Parameters:
privateKeyFlags- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKeyFlags
default TemplateV4.Builder privateKeyFlags(Consumer<PrivateKeyFlagsV4.Builder> privateKeyFlags)
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.
This is a convenience method that creates an instance of thePrivateKeyFlagsV4.Builderavoiding the need to create one manually viaPrivateKeyFlagsV4.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateKeyFlags(PrivateKeyFlagsV4).- Parameters:
privateKeyFlags- a consumer that will call methods onPrivateKeyFlagsV4.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
privateKeyFlags(PrivateKeyFlagsV4)
-
subjectNameFlags
TemplateV4.Builder subjectNameFlags(SubjectNameFlagsV4 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.
-
subjectNameFlags
default TemplateV4.Builder subjectNameFlags(Consumer<SubjectNameFlagsV4.Builder> subjectNameFlags)
Subject name flags describe the subject name and subject alternate name that is included in a certificate.
This is a convenience method that creates an instance of theSubjectNameFlagsV4.Builderavoiding the need to create one manually viaSubjectNameFlagsV4.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubjectNameFlags(SubjectNameFlagsV4).- Parameters:
subjectNameFlags- a consumer that will call methods onSubjectNameFlagsV4.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
subjectNameFlags(SubjectNameFlagsV4)
-
supersededTemplates
TemplateV4.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
TemplateV4.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.
-
-