public final class ImportCertificateOptions extends Object
Constructor and Description |
---|
ImportCertificateOptions(String name,
byte[] certificate)
Creates instance of CertificateImportOptions.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getCertificate()
Get the value of the certificate.
|
String |
getName()
Get the name of the certificate.
|
String |
getPassword()
Get the password for encrypting the certificate, if its encrypted.
|
CertificatePolicy |
getPolicy()
Get the management policy for the certificate.
|
Map<String,String> |
getTags()
Get the tags associated with the secret.
|
Boolean |
isEnabled()
Get the enabled status.
|
ImportCertificateOptions |
setEnabled(Boolean enabled)
Set the enabled status.
|
ImportCertificateOptions |
setPassword(String password)
Set the password for encrypting the certificate, if its encrypted.
|
ImportCertificateOptions |
setPolicy(CertificatePolicy policy)
Set the management policy for the certificate.
|
ImportCertificateOptions |
setTags(Map<String,String> tags)
Set the application specific maetadata.
|
public ImportCertificateOptions(String name, byte[] certificate)
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.public ImportCertificateOptions setEnabled(Boolean enabled)
enabled
- The enabled status to set.public Boolean isEnabled()
public CertificatePolicy getPolicy()
public ImportCertificateOptions setPolicy(CertificatePolicy policy)
policy
- the management policy for the certificatepublic ImportCertificateOptions setTags(Map<String,String> tags)
tags
- The metadata to set.public Map<String,String> getTags()
public ImportCertificateOptions setPassword(String password)
password
- The password used to encrypt the certificate.public String getPassword()
public String getName()
public byte[] getCertificate()
Copyright © 2021 Microsoft Corporation. All rights reserved.