Class CreateCertificateOptions
java.lang.Object
com.azure.security.keyvault.certificates.models.CreateCertificateOptions
Represents the configuration used to create a certificate in the key vault.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateCertificateOptions
(String name, CertificatePolicy policy) Creates an instance ofCreateCertificateOptions
. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of the certificate.Get the management policy for the certificate.getTags()
Get the tags associated with the certificate.Get a value indicating the certificate order in the vault is to be preserved.Get the enabled status of the certificate.setCertificateOrderPreserved
(Boolean preserveCertificateOrder) Set whether to preserve the certificate order in the vault.setEnabled
(Boolean enabled) Set the enabled status of the certificate.Set the tags to be associated with the certificate.
-
Constructor Details
-
CreateCertificateOptions
Creates an instance ofCreateCertificateOptions
.- Parameters:
name
- The name of the certificate to be created.policy
- The policy to be used for creating the certificate.- Throws:
NullPointerException
- ifname
orpolicy
is null.
-
-
Method Details
-
getName
Get the name of the certificate.- Returns:
- The name of the certificate.
-
getPolicy
Get the management policy for the certificate.- Returns:
- The management policy for the certificate.
-
isEnabled
Get the enabled status of the certificate.- Returns:
- The enabled status.
-
setEnabled
Set the enabled status of the certificate.- Parameters:
enabled
- The enabled status.- Returns:
- The updated
CreateCertificateOptions
object.
-
getTags
Get the tags associated with the certificate.- Returns:
- The tags associated with the certificate.
-
setTags
Set the tags to be associated with the certificate.- Parameters:
tags
- The tags to be associated with the certificate.- Returns:
- The updated
CreateCertificateOptions
object.
-
isCertificateOrderPreserved
Get a value indicating the certificate order in the vault is to be preserved. If true, the certificate chain will be preserved in its original order. If false (default), the leaf certificate will be placed at index 0.- Returns:
- A value indicating the certificate order in the vault is to be preserved.
-
setCertificateOrderPreserved
Set whether to preserve the certificate order in the vault. If true, the certificate chain will be preserved in its original order. If false (default), the leaf certificate will be placed at index 0.- Parameters:
preserveCertificateOrder
- Whether to preserve the certificate order in the vault.- Returns:
- The updated
CreateCertificateOptions
object.
-