Class CertificateProperties
java.lang.Object
com.azure.resourcemanager.deviceprovisioningservices.models.CertificateProperties
The description of an X509 CA Certificate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.created()
Get the created property: The certificate's creation date and time.expiry()
Get the expiry property: The certificate's expiration date and time.Get the isVerified property: Determines whether certificate has been verified.subject()
Get the subject property: The certificate's subject name.Get the thumbprint property: The certificate's thumbprint.updated()
Get the updated property: The certificate's last update date and time.void
validate()
Validates the instance.withCertificate
(byte[] certificate) Set the certificate property: base-64 representation of X509 certificate .cer file or just .pem file content.withIsVerified
(Boolean isVerified) Set the isVerified property: Determines whether certificate has been verified.
-
Constructor Details
-
CertificateProperties
public CertificateProperties()
-
-
Method Details
-
subject
Get the subject property: The certificate's subject name.- Returns:
- the subject value.
-
expiry
Get the expiry property: The certificate's expiration date and time.- Returns:
- the expiry value.
-
thumbprint
Get the thumbprint property: The certificate's thumbprint.- Returns:
- the thumbprint value.
-
isVerified
Get the isVerified property: Determines whether certificate has been verified.- Returns:
- the isVerified value.
-
withIsVerified
Set the isVerified property: Determines whether certificate has been verified.- Parameters:
isVerified
- the isVerified value to set.- Returns:
- the CertificateProperties object itself.
-
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.
-
withCertificate
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.
-
created
Get the created property: The certificate's creation date and time.- Returns:
- the created value.
-
updated
Get the updated property: The certificate's last update date and time.- Returns:
- the updated value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-