Class KeyVaultCertificate
- java.lang.Object
-
- com.azure.security.keyvault.certificates.models.KeyVaultCertificate
-
- Direct Known Subclasses:
KeyVaultCertificateWithPolicy
public class KeyVaultCertificate extends Object
Represents a certificate with all of its properties.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getCer()Get the cer content of the certificateStringgetId()Get the certificate identifierStringgetKeyId()Get the key id of the certificateStringgetName()Get the certificate nameCertificatePropertiesgetProperties()Get the certificate properties.StringgetSecretId()Get the secret id of the certificateKeyVaultCertificatesetProperties(CertificateProperties properties)Set the certificate properties
-
-
-
Method Detail
-
getProperties
public CertificateProperties getProperties()
Get the certificate properties.- Returns:
- the certificate properties.
-
setProperties
public KeyVaultCertificate setProperties(CertificateProperties properties)
Set the certificate properties- Parameters:
properties- the certificate properties- Returns:
- the updated certificate object itself.
- Throws:
NullPointerException- ifcertificatePropertiesis null
-
getId
public String getId()
Get the certificate identifier- Returns:
- the certificate identifier
-
getName
public String getName()
Get the certificate name- Returns:
- the certificate name
-
getKeyId
public String getKeyId()
Get the key id of the certificate- Returns:
- the key Id.
-
getSecretId
public String getSecretId()
Get the secret id of the certificate- Returns:
- the key Id.
-
getCer
public byte[] getCer()
Get the cer content of the certificate- Returns:
- the cer content.
-
-