CertificateOperations Class
- java.
lang. Object - IInheritedBehaviors
- com.
microsoft. azure. batch. CertificateOperations
- com.
public class CertificateOperations implements IInheritedBehaviors
Performs certificate-related operations on an Azure Batch account.
Field Summary
Modifier and Type | Field and Description |
---|---|
final String |
SHA1_CERTIFICATE_ALGORITHM
The SHA certificate algorithm. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint)
Cancels a failed deletion of the specified certificate. This operation can be performed only when the certificate is in the DELETE_FAILED state, and restores the certificate to the ACTIVE state. |
void |
cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint, Iterable<BatchClientBehavior> additionalBehaviors)
Cancels a failed deletion of the specified certificate. This operation can be performed only when the certificate is in the DELETE_FAILED state, and restores the certificate to the ACTIVE state. |
void |
createCertificate(CertificateAddParameter certificate)
Adds a certificate to the Batch account. |
void |
createCertificate(CertificateAddParameter certificate, Iterable<BatchClientBehavior> additionalBehaviors)
Adds a certificate to the Batch account. |
void |
createCertificate(InputStream certStream)
Adds a certificate to the Batch account. |
void |
createCertificate(InputStream certStream, Iterable<BatchClientBehavior> additionalBehaviors)
Adds a certificate to the Batch account. |
Collection<Batch |
customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service. |
void |
deleteCertificate(String thumbprintAlgorithm, String thumbprint)
Deletes the certificate from the Batch account. The delete operation requests that the certificate be deleted. The request puts the certificate in the DELETING state. The Batch service will perform the actual certificate deletion without any further client action. You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that:
If you try to delete a certificate that is in use, the deletion fails. The certificate state changes to DELETE_FAILED. You can use cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint) to set the status back to Active if you decide that you want to continue using the certificate. |
void |
deleteCertificate(String thumbprintAlgorithm, String thumbprint, Iterable<BatchClientBehavior> additionalBehaviors)
Deletes the certificate from the Batch account. The delete operation requests that the certificate be deleted. The request puts the certificate in the DELETING state. The Batch service will perform the actual certificate deletion without any further client action. You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that:
If you try to delete a certificate that is in use, the deletion fails. The certificate state changes to DELETE_FAILED. You can use cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint) to set the status back to Active if you decide that you want to continue using the certificate. |
Certificate |
getCertificate(String thumbprintAlgorithm, String thumbprint)
Gets the specified Certificate. |
Certificate |
getCertificate(String thumbprintAlgorithm, String thumbprint, DetailLevel detailLevel)
Gets the specified Certificate. |
Certificate |
getCertificate(String thumbprintAlgorithm, String thumbprint, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)
Gets the specified Certificate. |
PagedList<Certificate> |
listCertificates()
Lists the certificates in the Batch account. |
PagedList<Certificate> |
listCertificates(DetailLevel detailLevel)
Lists the certificates in the Batch account. |
PagedList<Certificate> |
listCertificates(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)
Lists the certificates in the Batch account. |
IInherited |
withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service. |
Field Details
SHA1_CERTIFICATE_ALGORITHM
public static final String SHA1_CERTIFICATE_ALGORITHM= "sha1"
The SHA certificate algorithm.
Method Details
cancelDeleteCertificate
public void cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint)
Cancels a failed deletion of the specified certificate. This operation can be performed only when the certificate is in the DELETE_FAILED state, and restores the certificate to the ACTIVE state.
Parameters:
Throws:
cancelDeleteCertificate
public void cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint, Iterable
Cancels a failed deletion of the specified certificate. This operation can be performed only when the certificate is in the DELETE_FAILED state, and restores the certificate to the ACTIVE state.
Parameters:
Throws:
createCertificate
public void createCertificate(CertificateAddParameter certificate)
Adds a certificate to the Batch account.
Parameters:
Throws:
createCertificate
public void createCertificate(CertificateAddParameter certificate, Iterable
Adds a certificate to the Batch account.
Parameters:
Throws:
createCertificate
public void createCertificate(InputStream certStream)
Adds a certificate to the Batch account.
Parameters:
Throws:
createCertificate
public void createCertificate(InputStream certStream, Iterable
Adds a certificate to the Batch account.
Parameters:
Throws:
customBehaviors
public Collection
Gets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
CertificateOperations.customBehaviors()Returns:
deleteCertificate
public void deleteCertificate(String thumbprintAlgorithm, String thumbprint)
Deletes the certificate from the Batch account.
The delete operation requests that the certificate be deleted. The request puts the certificate in the DELETING state. The Batch service will perform the actual certificate deletion without any further client action.
You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that:
<li>
<p>The certificate is not associated with any pools. </p>
</li>
<li>
<p>The certificate is not installed on any compute nodes. (Even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart.) </p>
</li>
If you try to delete a certificate that is in use, the deletion fails. The certificate state changes to DELETE_FAILED. You can use cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint) to set the status back to Active if you decide that you want to continue using the certificate.
Parameters:
Throws:
deleteCertificate
public void deleteCertificate(String thumbprintAlgorithm, String thumbprint, Iterable
Deletes the certificate from the Batch account.
The delete operation requests that the certificate be deleted. The request puts the certificate in the DELETING state. The Batch service will perform the actual certificate deletion without any further client action.
You cannot delete a certificate if a resource (pool or compute node) is using it. Before you can delete a certificate, you must therefore make sure that:
<li>
<p>The certificate is not associated with any pools. </p>
</li>
<li>
<p>The certificate is not installed on any compute nodes. (Even if you remove a certificate from a pool, it is not removed from existing compute nodes in that pool until they restart.) </p>
</li>
If you try to delete a certificate that is in use, the deletion fails. The certificate state changes to DELETE_FAILED.
You can use cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint) to set the status back to Active if you decide that you want to continue using the certificate.
Parameters:
Throws:
getCertificate
public Certificate getCertificate(String thumbprintAlgorithm, String thumbprint)
Gets the specified Certificate.
Parameters:
Returns:
Throws:
getCertificate
public Certificate getCertificate(String thumbprintAlgorithm, String thumbprint, DetailLevel detailLevel)
Gets the specified Certificate.
Parameters:
Returns:
Throws:
getCertificate
public Certificate getCertificate(String thumbprintAlgorithm, String thumbprint, DetailLevel detailLevel, Iterable
Gets the specified Certificate.
Parameters:
Returns:
Throws:
listCertificates
public PagedList
Lists the certificates in the Batch account.
Returns:
Throws:
listCertificates
public PagedList
Lists the certificates in the Batch account.
Parameters:
Returns:
Throws:
listCertificates
public PagedList
Lists the certificates in the Batch account.
Parameters:
Returns:
Throws:
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection
Sets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
CertificateOperations.withCustomBehaviors(Collection<BatchClientBehavior> behaviors)Parameters:
Returns: