Class ImportCertificateOptions
java.lang.Object
com.azure.security.keyvault.certificates.models.ImportCertificateOptions
Represents the configuration used to import a certificate in the key vault.
-
Constructor Summary
ConstructorDescriptionImportCertificateOptions
(String name, byte[] certificate) Creates instance of CertificateImportOptions. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the value of the certificate.getName()
Get the name of the certificate.Get the password for encrypting the certificate, if its encrypted.Get the management policy for the certificate.getTags()
Get the tags associated with the secret.Get the enabled status.setEnabled
(Boolean enabled) Set the enabled status.setPassword
(String password) Set the password for encrypting the certificate, if its encrypted.setPolicy
(CertificatePolicy policy) Set the management policy for the certificate.Set the application specific maetadata.
-
Constructor Details
-
ImportCertificateOptions
Creates instance of CertificateImportOptions.- Parameters:
name
- The name of the key.certificate
- The PFX or PEM formatted value of the certificate containing both the x509 certificates and the private key.
-
-
Method Details
-
setEnabled
Set the enabled status.- Parameters:
enabled
- The enabled status to set.- Returns:
- the CertificateImportOptions itself
-
isEnabled
Get the enabled status.- Returns:
- the enabled status
-
getPolicy
Get the management policy for the certificate.- Returns:
- the management policy
-
setPolicy
Set the management policy for the certificate.- Parameters:
policy
- the management policy for the certificate- Returns:
- the updated CertificateImportOptions itself
-
setTags
Set the application specific maetadata.- Parameters:
tags
- The metadata to set.- Returns:
- the updated CertificateImportOptions itself
-
getTags
Get the tags associated with the secret.- Returns:
- the value of the tags.
-
setPassword
Set the password for encrypting the certificate, if its encrypted.- Parameters:
password
- The password used to encrypt the certificate.- Returns:
- the updated CertificateImportOptions itself
-
getPassword
Get the password for encrypting the certificate, if its encrypted.- Returns:
- the password
-
getName
Get the name of the certificate.- Returns:
- the name of the certificate.
-
getCertificate
public byte[] getCertificate()Get the value of the certificate.- Returns:
- the value of the certificate.
-