Class ImportCertificateOptions
- java.lang.Object
-
- com.azure.security.keyvault.certificates.models.ImportCertificateOptions
-
public final class ImportCertificateOptions extends Object
Represents the configuration used to import a certificate in the key vault.
-
-
Constructor Summary
Constructors Constructor Description ImportCertificateOptions(String name, byte[] certificate)Creates instance of CertificateImportOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getCertificate()Get the value of the certificate.StringgetName()Get the name of the certificate.StringgetPassword()Get the password for encrypting the certificate, if its encrypted.CertificatePolicygetPolicy()Get the management policy for the certificate.Map<String,String>getTags()Get the tags associated with the secret.BooleanisEnabled()Get the enabled status.ImportCertificateOptionssetEnabled(Boolean enabled)Set the enabled status.ImportCertificateOptionssetPassword(String password)Set the password for encrypting the certificate, if its encrypted.ImportCertificateOptionssetPolicy(CertificatePolicy policy)Set the management policy for the certificate.ImportCertificateOptionssetTags(Map<String,String> tags)Set the application specific maetadata.
-
-
-
Constructor Detail
-
ImportCertificateOptions
public ImportCertificateOptions(String name, byte[] certificate)
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 Detail
-
setEnabled
public ImportCertificateOptions setEnabled(Boolean enabled)
Set the enabled status.- Parameters:
enabled- The enabled status to set.- Returns:
- the CertificateImportOptions itself
-
isEnabled
public Boolean isEnabled()
Get the enabled status.- Returns:
- the enabled status
-
getPolicy
public CertificatePolicy getPolicy()
Get the management policy for the certificate.- Returns:
- the management policy
-
setPolicy
public ImportCertificateOptions setPolicy(CertificatePolicy policy)
Set the management policy for the certificate.- Parameters:
policy- the management policy for the certificate- Returns:
- the updated CertificateImportOptions itself
-
setTags
public ImportCertificateOptions setTags(Map<String,String> tags)
Set the application specific maetadata.- Parameters:
tags- The metadata to set.- Returns:
- the updated CertificateImportOptions itself
-
getTags
public Map<String,String> getTags()
Get the tags associated with the secret.- Returns:
- the value of the tags.
-
setPassword
public ImportCertificateOptions setPassword(String password)
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
public String getPassword()
Get the password for encrypting the certificate, if its encrypted.- Returns:
- the password
-
getName
public String 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.
-
-