KeyVaultCertificate Class

  • java.lang.Object
    • com.azure.security.keyvault.certificates.models.KeyVaultCertificate

Implements

public class KeyVaultCertificate
implements JsonSerializable<KeyVaultCertificate>

Represents a certificate with all of its properties.

Method Summary

Modifier and Type Method and Description
static KeyVaultCertificate fromJson(JsonReader jsonReader)

Reads a JSON stream into a KeyVaultCertificate.

byte[] getCer()

Get the cer content of the certificate

String getId()

Get the certificate identifier

String getKeyId()

Get the key id of the certificate

String getName()

Get the certificate name

CertificateProperties getProperties()

Get the certificate properties.

String getSecretId()

Get the secret id of the certificate

KeyVaultCertificate setProperties(CertificateProperties properties)

Set the certificate properties

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static KeyVaultCertificate fromJson(JsonReader jsonReader)

Reads a JSON stream into a KeyVaultCertificate.

Parameters:

jsonReader - The JsonReader being read.

Returns:

The KeyVaultCertificate that the JSON stream represented, may return null.

Throws:

IOException

- If a KeyVaultCertificate fails to be read from the jsonReader.

getCer

public byte[] getCer()

Get the cer content of the certificate

Returns:

the cer content.

getId

public String getId()

Get the certificate identifier

Returns:

the certificate identifier

getKeyId

public String getKeyId()

Get the key id of the certificate

Returns:

the key Id.

getName

public String getName()

Get the certificate name

Returns:

the certificate name

getProperties

public CertificateProperties getProperties()

Get the certificate properties.

Returns:

the certificate properties.

getSecretId

public String getSecretId()

Get the secret id of the certificate

Returns:

the secret Id.

setProperties

public KeyVaultCertificate setProperties(CertificateProperties properties)

Set the certificate properties

Parameters:

properties - the certificate properties

Returns:

the updated certificate object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to