Class CertificateProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.CertificateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateProperties>
public final class CertificateProperties
extends Object
implements com.azure.json.JsonSerializable<CertificateProperties>
Certificate resource specific properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the certificateKeyVaultProperties property: Properties for a certificate stored in a Key Vault.Get the expirationDate property: Certificate expiration date.static CertificatePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateProperties from the JsonReader.Get the issueDate property: Certificate issue Date.issuer()Get the issuer property: Certificate issuer.password()Get the password property: Certificate password.Get the provisioningState property: Provisioning state of the certificate.Get the publicKeyHash property: Public key hash.Get the subjectAlternativeNames property: Subject alternative names the certificate applies to.Get the subjectName property: Subject name of the certificate.Get the thumbprint property: Certificate thumbprint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) valid()Get the valid property: Is the certificate valid?.voidvalidate()Validates the instance.byte[]value()Get the value property: PFX or PEM blob.withCertificateKeyVaultProperties(CertificateKeyVaultProperties certificateKeyVaultProperties) Set the certificateKeyVaultProperties property: Properties for a certificate stored in a Key Vault.withPassword(String password) Set the password property: Certificate password.withValue(byte[] value) Set the value property: PFX or PEM blob.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateProperties
public CertificateProperties()Creates an instance of CertificateProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning state of the certificate.- Returns:
- the provisioningState value.
-
certificateKeyVaultProperties
Get the certificateKeyVaultProperties property: Properties for a certificate stored in a Key Vault.- Returns:
- the certificateKeyVaultProperties value.
-
withCertificateKeyVaultProperties
public CertificateProperties withCertificateKeyVaultProperties(CertificateKeyVaultProperties certificateKeyVaultProperties) Set the certificateKeyVaultProperties property: Properties for a certificate stored in a Key Vault.- Parameters:
certificateKeyVaultProperties- the certificateKeyVaultProperties value to set.- Returns:
- the CertificateProperties object itself.
-
password
Get the password property: Certificate password.- Returns:
- the password value.
-
withPassword
Set the password property: Certificate password.- Parameters:
password- the password value to set.- Returns:
- the CertificateProperties object itself.
-
subjectName
Get the subjectName property: Subject name of the certificate.- Returns:
- the subjectName value.
-
subjectAlternativeNames
Get the subjectAlternativeNames property: Subject alternative names the certificate applies to.- Returns:
- the subjectAlternativeNames value.
-
value
public byte[] value()Get the value property: PFX or PEM blob.- Returns:
- the value value.
-
withValue
Set the value property: PFX or PEM blob.- Parameters:
value- the value value to set.- Returns:
- the CertificateProperties object itself.
-
issuer
Get the issuer property: Certificate issuer.- Returns:
- the issuer value.
-
issueDate
Get the issueDate property: Certificate issue Date.- Returns:
- the issueDate value.
-
expirationDate
Get the expirationDate property: Certificate expiration date.- Returns:
- the expirationDate value.
-
thumbprint
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
valid
Get the valid property: Is the certificate valid?.- Returns:
- the valid value.
-
publicKeyHash
Get the publicKeyHash property: Public key hash.- Returns:
- the publicKeyHash value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CertificateProperties>- Throws:
IOException
-
fromJson
public static CertificateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-