Class CertificatePatchResource


  • public class CertificatePatchResource
    extends ProxyOnlyResource
    ARM resource for a certificate.
    • Constructor Detail

      • CertificatePatchResource

        public CertificatePatchResource()
    • Method Detail

      • friendlyName

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

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

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

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

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

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

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

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

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

        public org.joda.time.DateTime issueDate()
        Get certificate issue Date.
        Returns:
        the issueDate value
      • expirationDate

        public org.joda.time.DateTime expirationDate()
        Get certificate expiration date.
        Returns:
        the expirationDate value
      • password

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

        public CertificatePatchResource withPassword​(String password)
        Set certificate password.
        Parameters:
        password - the password value to set
        Returns:
        the CertificatePatchResource object itself.
      • thumbprint

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

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

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

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

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

        public String keyVaultId()
        Get key Vault Csm resource Id.
        Returns:
        the keyVaultId value
      • withKeyVaultId

        public CertificatePatchResource withKeyVaultId​(String keyVaultId)
        Set key Vault Csm resource Id.
        Parameters:
        keyVaultId - the keyVaultId value to set
        Returns:
        the CertificatePatchResource object itself.
      • keyVaultSecretName

        public String keyVaultSecretName()
        Get key Vault secret name.
        Returns:
        the keyVaultSecretName value
      • withKeyVaultSecretName

        public CertificatePatchResource withKeyVaultSecretName​(String keyVaultSecretName)
        Set key Vault secret name.
        Parameters:
        keyVaultSecretName - the keyVaultSecretName value to set
        Returns:
        the CertificatePatchResource object itself.
      • keyVaultSecretStatus

        public KeyVaultSecretStatus keyVaultSecretStatus()
        Get status of the Key Vault secret. Possible values include: 'Initialized', 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', 'OperationNotPermittedOnKeyVault', 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', 'Unknown'.
        Returns:
        the keyVaultSecretStatus value
      • serverFarmId

        public String serverFarmId()
        Get 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 CertificatePatchResource withServerFarmId​(String serverFarmId)
        Set 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 CertificatePatchResource object itself.