CertificateProperties Class
- java.
lang. Object - com.
azure. resourcemanager. deviceprovisioningservices. models. CertificateProperties
- com.
Implements
public final class CertificateProperties
implements JsonSerializable<CertificateProperties>
The description of an X509 CA Certificate.
Constructor Summary
| Constructor | Description |
|---|---|
| CertificateProperties() |
Creates an instance of Certificate |
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. |
|
Offset |
created()
Get the created property: The certificate's creation date and time. |
|
Offset |
expiry()
Get the expiry property: The certificate's expiration date and time. |
|
static
Certificate |
fromJson(JsonReader jsonReader)
Reads an instance of Certificate |
| Boolean |
isVerified()
Get the is |
| String |
subject()
Get the subject property: The certificate's subject name. |
| String |
thumbprint()
Get the thumbprint property: The certificate's thumbprint. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Offset |
updated()
Get the updated property: The certificate's last update date and time. |
|
Certificate |
withCertificate(byte[] certificate)
Set the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content. |
|
Certificate |
withIsVerified(Boolean isVerified)
Set the is |
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:
created
public OffsetDateTime created()
Get the created property: The certificate's creation date and time.
Returns:
expiry
public OffsetDateTime expiry()
Get the expiry property: The certificate's expiration date and time.
Returns:
fromJson
public static CertificateProperties fromJson(JsonReader jsonReader)
Reads an instance of CertificateProperties from the JsonReader.
Parameters:
Returns:
Throws:
isVerified
public Boolean isVerified()
Get the isVerified property: Determines whether certificate has been verified.
Returns:
subject
public String subject()
Get the subject property: The certificate's subject name.
Returns:
thumbprint
public String thumbprint()
Get the thumbprint property: The certificate's thumbprint.
Returns:
toJson
updated
public OffsetDateTime updated()
Get the updated property: The certificate's last update date and time.
Returns:
withCertificate
public CertificateProperties withCertificate(byte[] certificate)
Set the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.
Parameters:
Returns:
withIsVerified
public CertificateProperties withIsVerified(Boolean isVerified)
Set the isVerified property: Determines whether certificate has been verified.
Parameters:
Returns: