Class CertificatePatchResource
- java.lang.Object
-
- com.microsoft.azure.ProxyResource
-
- com.microsoft.azure.management.appservice.ProxyOnlyResource
-
- com.microsoft.azure.management.appservice.CertificatePatchResource
-
public class CertificatePatchResource extends ProxyOnlyResource
ARM resource for a certificate.
-
-
Constructor Summary
Constructors Constructor Description CertificatePatchResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]cerBlob()Get raw bytes of .cer file.org.joda.time.DateTimeexpirationDate()Get certificate expiration date.StringfriendlyName()Get friendly name of the certificate.HostingEnvironmentProfilehostingEnvironmentProfile()Get specification for the App Service Environment to use for the certificate.List<String>hostNames()Get host names the certificate applies to.org.joda.time.DateTimeissueDate()Get certificate issue Date.Stringissuer()Get certificate issuer.StringkeyVaultId()Get key Vault Csm resource Id.StringkeyVaultSecretName()Get key Vault secret name.KeyVaultSecretStatuskeyVaultSecretStatus()Get status of the Key Vault secret.Stringpassword()Get certificate password.byte[]pfxBlob()Get pfx blob.StringpublicKeyHash()Get public key hash.StringselfLink()Get self link.StringserverFarmId()Get resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".StringsiteName()Get app name.StringsubjectName()Get subject name of the certificate.Stringthumbprint()Get certificate thumbprint.Booleanvalid()Get is the certificate valid?.CertificatePatchResourcewithHostNames(List<String> hostNames)Set host names the certificate applies to.CertificatePatchResourcewithKeyVaultId(String keyVaultId)Set key Vault Csm resource Id.CertificatePatchResourcewithKeyVaultSecretName(String keyVaultSecretName)Set key Vault secret name.CertificatePatchResourcewithPassword(String password)Set certificate password.CertificatePatchResourcewithPfxBlob(byte[] pfxBlob)Set pfx blob.CertificatePatchResourcewithServerFarmId(String serverFarmId)Set resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".-
Methods inherited from class com.microsoft.azure.management.appservice.ProxyOnlyResource
kind, withKind
-
-
-
-
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.
-
-