CertificateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.models.CertificateProperties

Implements

public final class CertificateProperties
implements JsonSerializable<CertificateProperties>

The description of an X509 CA Certificate.

Constructor Summary

Constructor Description
CertificateProperties()

Creates an instance of CertificateProperties class.

Method Summary

Modifier and Type Method and Description
byte[] certificate()

Get the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.

OffsetDateTime created()

Get the created property: The certificate's creation date and time.

OffsetDateTime expiry()

Get the expiry property: The certificate's expiration date and time.

static CertificateProperties fromJson(JsonReader jsonReader)

Reads an instance of CertificateProperties from the JsonReader.

Boolean isVerified()

Get the isVerified property: Determines whether certificate has been verified.

String subject()

Get the subject property: The certificate's subject name.

String thumbprint()

Get the thumbprint property: The certificate's thumbprint.

JsonWriter toJson(JsonWriter jsonWriter)
OffsetDateTime updated()

Get the updated property: The certificate's last update date and time.

CertificateProperties withCertificate(byte[] certificate)

Set the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.

CertificateProperties withIsVerified(Boolean isVerified)

Set the isVerified property: Determines whether certificate has been verified.

Methods inherited from java.lang.Object

Constructor Details

CertificateProperties

public CertificateProperties()

Creates an instance of CertificateProperties class.

Method Details

certificate

public byte[] certificate()

Get the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.

Returns:

the certificate value.

created

public OffsetDateTime created()

Get the created property: The certificate's creation date and time.

Returns:

the created value.

expiry

public OffsetDateTime expiry()

Get the expiry property: The certificate's expiration date and time.

Returns:

the expiry value.

fromJson

public static CertificateProperties fromJson(JsonReader jsonReader)

Reads an instance of CertificateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CertificateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CertificateProperties.

isVerified

public Boolean isVerified()

Get the isVerified property: Determines whether certificate has been verified.

Returns:

the isVerified value.

subject

public String subject()

Get the subject property: The certificate's subject name.

Returns:

the subject value.

thumbprint

public String thumbprint()

Get the thumbprint property: The certificate's thumbprint.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updated

public OffsetDateTime updated()

Get the updated property: The certificate's last update date and time.

Returns:

the updated value.

withCertificate

public CertificateProperties withCertificate(byte[] certificate)

Set the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.

Parameters:

certificate - the certificate value to set.

Returns:

the CertificateProperties object itself.

withIsVerified

public CertificateProperties withIsVerified(Boolean isVerified)

Set the isVerified property: Determines whether certificate has been verified.

Parameters:

isVerified - the isVerified value to set.

Returns:

the CertificateProperties object itself.

Applies to