Class CustomerCertificate
java.lang.Object
com.azure.resourcemanager.cdn.models.Certificate
com.azure.resourcemanager.cdn.models.CustomerCertificate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Certificate>
Customer Certificate used for https.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the certificateAuthority property: Certificate issuing authority.Get the expirationDate property: Certificate expiration date.static CustomerCertificatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomerCertificate from the JsonReader.Get the secretSource property: Resource reference to the Azure Key Vault certificate.Get the secretVersion property: Certificate version.subject()Get the subject property: Subject name in the certificate.Get the subjectAlternativeNames property: The list of SANs.Get the thumbprint property: Certificate thumbprint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useLatestVersion property: Whether to use the latest version for the certificate.voidvalidate()Validates the instance.withSecretSource(ResourceReference secretSource) Set the secretSource property: Resource reference to the Azure Key Vault certificate.withSecretVersion(String secretVersion) Set the secretVersion property: Certificate version.withSubjectAlternativeNames(List<String> subjectAlternativeNames) Set the subjectAlternativeNames property: The list of SANs.withType(SecretType type) Set the type property: The type of the secret resource.withUseLatestVersion(Boolean useLatestVersion) Set the useLatestVersion property: Whether to use the latest version for the certificate.Methods inherited from class Certificate
typeMethods inherited from class 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
-
CustomerCertificate
public CustomerCertificate()Creates an instance of CustomerCertificate class.
-
-
Method Details
-
secretSource
Get the secretSource property: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{certificateName}.- Returns:
- the secretSource value.
-
withSecretSource
Set the secretSource property: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{certificateName}.- Parameters:
secretSource- the secretSource value to set.- Returns:
- the CustomerCertificate object itself.
-
secretVersion
Get the secretVersion property: Certificate version.- Returns:
- the secretVersion value.
-
withSecretVersion
Set the secretVersion property: Certificate version.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the CustomerCertificate object itself.
-
certificateAuthority
Get the certificateAuthority property: Certificate issuing authority.- Returns:
- the certificateAuthority value.
-
useLatestVersion
Get the useLatestVersion property: Whether to use the latest version for the certificate.- Returns:
- the useLatestVersion value.
-
withUseLatestVersion
Set the useLatestVersion property: Whether to use the latest version for the certificate.- Parameters:
useLatestVersion- the useLatestVersion value to set.- Returns:
- the CustomerCertificate object itself.
-
subjectAlternativeNames
-
withSubjectAlternativeNames
Set the subjectAlternativeNames property: The list of SANs.- Parameters:
subjectAlternativeNames- the subjectAlternativeNames value to set.- Returns:
- the CustomerCertificate object itself.
-
thumbprint
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
expirationDate
Get the expirationDate property: Certificate expiration date.- Overrides:
expirationDatein classCertificate- Returns:
- the expirationDate value.
-
subject
Get the subject property: Subject name in the certificate.- Overrides:
subjectin classCertificate- Returns:
- the subject value.
-
withType
Set the type property: The type of the secret resource.- Overrides:
withTypein classCertificate- Parameters:
type- the type value to set.- Returns:
- the Certificate object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classCertificate- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Certificate>- Overrides:
toJsonin classCertificate- Throws:
IOException
-
fromJson
Reads an instance of CustomerCertificate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomerCertificate 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 CustomerCertificate.
-