CertificateInner Class

public final class CertificateInner
extends Resource

SSL certificate for an app.

Constructor Summary

Constructor Description
CertificateInner()

Creates an instance of CertificateInner class.

Method Summary

Modifier and Type Method and Description
String canonicalName()

Get the canonicalName property: CNAME of the certificate to be issued via free certificate.

byte[] cerBlob()

Get the cerBlob property: Raw bytes of .cer file.

String domainValidationMethod()

Get the domainValidationMethod property: Method of domain validation for free cert.

OffsetDateTime expirationDate()

Get the expirationDate property: Certificate expiration date.

String friendlyName()

Get the friendlyName property: Friendly name of the certificate.

static CertificateInner fromJson(JsonReader jsonReader)

Reads an instance of CertificateInner from the JsonReader.

List<String> hostNames()

Get the hostNames property: Host names the certificate applies to.

HostingEnvironmentProfile hostingEnvironmentProfile()

Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.

String id()

Get the id property: Fully qualified resource Id for the resource.

OffsetDateTime issueDate()

Get the issueDate property: Certificate issue Date.

String issuer()

Get the issuer property: Certificate issuer.

String keyVaultId()

Get the keyVaultId property: Key Vault Csm resource Id.

String keyVaultSecretName()

Get the keyVaultSecretName property: Key Vault secret name.

KeyVaultSecretStatus keyVaultSecretStatus()

Get the keyVaultSecretStatus property: Status of the Key Vault secret.

String kind()

Get the kind property: Kind of resource.

String name()

Get the name property: The name of the resource.

String password()

Get the password property: Certificate password.

byte[] pfxBlob()

Get the pfxBlob property: Pfx blob.

String publicKeyHash()

Get the publicKeyHash property: Public key hash.

String selfLink()

Get the selfLink property: Self link.

String serverFarmId()

Get the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".

String siteName()

Get the siteName property: App name.

String subjectName()

Get the subjectName property: Subject name of the certificate.

String thumbprint()

Get the thumbprint property: Certificate thumbprint.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Boolean valid()

Get the valid property: Is the certificate valid?.

void validate()

Validates the instance.

CertificateInner withCanonicalName(String canonicalName)

Set the canonicalName property: CNAME of the certificate to be issued via free certificate.

CertificateInner withDomainValidationMethod(String domainValidationMethod)

Set the domainValidationMethod property: Method of domain validation for free cert.

CertificateInner withHostNames(List<String> hostNames)

Set the hostNames property: Host names the certificate applies to.

CertificateInner withKeyVaultId(String keyVaultId)

Set the keyVaultId property: Key Vault Csm resource Id.

CertificateInner withKeyVaultSecretName(String keyVaultSecretName)

Set the keyVaultSecretName property: Key Vault secret name.

CertificateInner withKind(String kind)

Set the kind property: Kind of resource.

CertificateInner withLocation(String location)
CertificateInner withPassword(String password)

Set the password property: Certificate password.

CertificateInner withPfxBlob(byte[] pfxBlob)

Set the pfxBlob property: Pfx blob.

CertificateInner withServerFarmId(String serverFarmId)

Set the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".

CertificateInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

CertificateInner

public CertificateInner()

Creates an instance of CertificateInner class.

Method Details

canonicalName

public String canonicalName()

Get the canonicalName property: CNAME of the certificate to be issued via free certificate.

Returns:

the canonicalName value.

cerBlob

public byte[] cerBlob()

Get the cerBlob property: Raw bytes of .cer file.

Returns:

the cerBlob value.

domainValidationMethod

public String domainValidationMethod()

Get the domainValidationMethod property: Method of domain validation for free cert.

Returns:

the domainValidationMethod value.

expirationDate

public OffsetDateTime expirationDate()

Get the expirationDate property: Certificate expiration date.

Returns:

the expirationDate value.

friendlyName

public String friendlyName()

Get the friendlyName property: Friendly name of the certificate.

Returns:

the friendlyName value.

fromJson

public static CertificateInner fromJson(JsonReader jsonReader)

Reads an instance of CertificateInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostNames

public List hostNames()

Get the hostNames property: Host names the certificate applies to.

Returns:

the hostNames value.

hostingEnvironmentProfile

public HostingEnvironmentProfile hostingEnvironmentProfile()

Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.

Returns:

the hostingEnvironmentProfile value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CertificateInner.id()

Returns:

the id value.

issueDate

public OffsetDateTime issueDate()

Get the issueDate property: Certificate issue Date.

Returns:

the issueDate value.

issuer

public String issuer()

Get the issuer property: Certificate issuer.

Returns:

the issuer value.

keyVaultId

public String keyVaultId()

Get the keyVaultId property: Key Vault Csm resource Id.

Returns:

the keyVaultId value.

keyVaultSecretName

public String keyVaultSecretName()

Get the keyVaultSecretName property: Key Vault secret name.

Returns:

the keyVaultSecretName value.

keyVaultSecretStatus

public KeyVaultSecretStatus keyVaultSecretStatus()

Get the keyVaultSecretStatus property: Status of the Key Vault secret.

Returns:

the keyVaultSecretStatus value.

kind

public String kind()

Get the kind property: Kind of resource.

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CertificateInner.name()

Returns:

the name value.

password

public String password()

Get the password property: Certificate password.

Returns:

the password value.

pfxBlob

public byte[] pfxBlob()

Get the pfxBlob property: Pfx blob.

Returns:

the pfxBlob value.

publicKeyHash

public String publicKeyHash()

Get the publicKeyHash property: Public key hash.

Returns:

the publicKeyHash value.

selfLink

public String selfLink()

Get the selfLink property: Self link.

Returns:

the selfLink value.

serverFarmId

public String serverFarmId()

Get the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".

Returns:

the serverFarmId value.

siteName

public String siteName()

Get the siteName property: App name.

Returns:

the siteName value.

subjectName

public String subjectName()

Get the subjectName property: Subject name of the certificate.

Returns:

the subjectName value.

thumbprint

public String thumbprint()

Get the thumbprint property: Certificate thumbprint.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CertificateInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CertificateInner.type()

Returns:

the type value.

valid

public Boolean valid()

Get the valid property: Is the certificate valid?.

Returns:

the valid value.

validate

public void validate()

Validates the instance.

withCanonicalName

public CertificateInner withCanonicalName(String canonicalName)

Set the canonicalName property: CNAME of the certificate to be issued via free certificate.

Parameters:

canonicalName - the canonicalName value to set.

Returns:

the CertificateInner object itself.

withDomainValidationMethod

public CertificateInner withDomainValidationMethod(String domainValidationMethod)

Set the domainValidationMethod property: Method of domain validation for free cert.

Parameters:

domainValidationMethod - the domainValidationMethod value to set.

Returns:

the CertificateInner object itself.

withHostNames

public CertificateInner withHostNames(List hostNames)

Set the hostNames property: Host names the certificate applies to.

Parameters:

hostNames - the hostNames value to set.

Returns:

the CertificateInner object itself.

withKeyVaultId

public CertificateInner withKeyVaultId(String keyVaultId)

Set the keyVaultId property: Key Vault Csm resource Id.

Parameters:

keyVaultId - the keyVaultId value to set.

Returns:

the CertificateInner object itself.

withKeyVaultSecretName

public CertificateInner withKeyVaultSecretName(String keyVaultSecretName)

Set the keyVaultSecretName property: Key Vault secret name.

Parameters:

keyVaultSecretName - the keyVaultSecretName value to set.

Returns:

the CertificateInner object itself.

withKind

public CertificateInner withKind(String kind)

Set the kind property: Kind of resource.

Parameters:

kind - the kind value to set.

Returns:

the CertificateInner object itself.

withLocation

public CertificateInner withLocation(String location)

Overrides:

CertificateInner.withLocation(String location)

Parameters:

location

withPassword

public CertificateInner withPassword(String password)

Set the password property: Certificate password.

Parameters:

password - the password value to set.

Returns:

the CertificateInner object itself.

withPfxBlob

public CertificateInner withPfxBlob(byte[] pfxBlob)

Set the pfxBlob property: Pfx blob.

Parameters:

pfxBlob - the pfxBlob value to set.

Returns:

the CertificateInner object itself.

withServerFarmId

public CertificateInner withServerFarmId(String serverFarmId)

Set the serverFarmId property: Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".

Parameters:

serverFarmId - the serverFarmId value to set.

Returns:

the CertificateInner object itself.

withTags

public CertificateInner withTags(Map tags)

Overrides:

CertificateInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to