Class CertificateInner


  • public final class CertificateInner
    extends com.azure.core.management.Resource
    SSL certificate for an app.
    • Constructor Detail

      • CertificateInner

        public CertificateInner()
    • Method Detail

      • kind

        public String kind()
        Get the kind property: Kind of resource.
        Returns:
        the kind value.
      • 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:
        withLocation in class com.azure.core.management.Resource
      • password

        public String password()
        Get the password property: Certificate password.
        Returns:
        the password value.
      • withPassword

        public CertificateInner withPassword​(String password)
        Set the password property: Certificate password.
        Parameters:
        password - the password value to set.
        Returns:
        the CertificateInner object itself.
      • friendlyName

        public String friendlyName()
        Get the friendlyName property: Friendly name of the certificate.
        Returns:
        the friendlyName value.
      • subjectName

        public String subjectName()
        Get the subjectName property: Subject name of the certificate.
        Returns:
        the subjectName value.
      • hostNames

        public List<String> hostNames()
        Get the hostNames property: Host names the certificate applies to.
        Returns:
        the hostNames value.
      • withHostNames

        public CertificateInner withHostNames​(List<String> hostNames)
        Set the hostNames property: Host names the certificate applies to.
        Parameters:
        hostNames - the hostNames value to set.
        Returns:
        the CertificateInner object itself.
      • pfxBlob

        public byte[] pfxBlob()
        Get the pfxBlob property: Pfx blob.
        Returns:
        the pfxBlob value.
      • withPfxBlob

        public CertificateInner withPfxBlob​(byte[] pfxBlob)
        Set the pfxBlob property: Pfx blob.
        Parameters:
        pfxBlob - the pfxBlob value to set.
        Returns:
        the CertificateInner object itself.
      • siteName

        public String siteName()
        Get the siteName property: App name.
        Returns:
        the siteName value.
      • selfLink

        public String selfLink()
        Get the selfLink property: Self link.
        Returns:
        the selfLink value.
      • issuer

        public String issuer()
        Get the issuer property: Certificate issuer.
        Returns:
        the issuer value.
      • issueDate

        public OffsetDateTime issueDate()
        Get the issueDate property: Certificate issue Date.
        Returns:
        the issueDate value.
      • expirationDate

        public OffsetDateTime expirationDate()
        Get the expirationDate property: Certificate expiration date.
        Returns:
        the expirationDate value.
      • thumbprint

        public String thumbprint()
        Get the thumbprint property: Certificate thumbprint.
        Returns:
        the thumbprint value.
      • valid

        public Boolean valid()
        Get the valid property: Is the certificate valid?.
        Returns:
        the valid value.
      • cerBlob

        public byte[] cerBlob()
        Get the cerBlob property: Raw bytes of .cer file.
        Returns:
        the cerBlob value.
      • publicKeyHash

        public String publicKeyHash()
        Get the publicKeyHash property: Public key hash.
        Returns:
        the publicKeyHash value.
      • hostingEnvironmentProfile

        public HostingEnvironmentProfile hostingEnvironmentProfile()
        Get the hostingEnvironmentProfile property: Specification for the App Service Environment to use for the certificate.
        Returns:
        the hostingEnvironmentProfile value.
      • keyVaultId

        public String keyVaultId()
        Get the keyVaultId property: Key Vault Csm resource Id.
        Returns:
        the keyVaultId value.
      • 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.
      • keyVaultSecretName

        public String keyVaultSecretName()
        Get the keyVaultSecretName property: Key Vault secret name.
        Returns:
        the keyVaultSecretName value.
      • 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.
      • keyVaultSecretStatus

        public KeyVaultSecretStatus keyVaultSecretStatus()
        Get the keyVaultSecretStatus property: Status of the Key Vault secret.
        Returns:
        the keyVaultSecretStatus 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.
      • 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.
      • canonicalName

        public String canonicalName()
        Get the canonicalName property: CNAME of the certificate to be issued via free certificate.
        Returns:
        the canonicalName value.
      • 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.
      • domainValidationMethod

        public String domainValidationMethod()
        Get the domainValidationMethod property: Method of domain validation for free cert.
        Returns:
        the domainValidationMethod value.
      • 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.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.