BatchCertificate Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchCertificate
- com.
Implements
public final class BatchCertificate
implements JsonSerializable<BatchCertificate>
A Certificate that can be installed on Compute Nodes and can be used to authenticate operations on the machine.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchCertificate(String thumbprint, String thumbprintAlgorithm, byte[] data) |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
getCertificateFormat()
Get the certificate |
| byte[] |
getData()
Get the data property: The base64-encoded contents of the Certificate. |
|
Batch |
getDeleteCertificateError()
Get the delete |
| String |
getPassword()
Get the password property: The password to access the Certificate's private key. |
|
Batch |
getPreviousState()
Get the previous |
|
Offset |
getPreviousStateTransitionTime()
Get the previous |
| String |
getPublicData()
Get the public |
|
Batch |
getState()
Get the state property: The state of the Certificate. |
|
Offset |
getStateTransitionTime()
Get the state |
| String |
getThumbprint()
Get the thumbprint property: The X.509 thumbprint of the Certificate. |
| String |
getThumbprintAlgorithm()
Get the thumbprint |
| String |
getUrl()
Get the url property: The URL of the Certificate. |
|
Batch |
setCertificateFormat(BatchCertificateFormat certificateFormat)
Set the certificate |
|
Batch |
setPassword(String password)
Set the password property: The password to access the Certificate's private key. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchCertificate
public BatchCertificate(String thumbprint, String thumbprintAlgorithm, byte[] data)
Creates an instance of BatchCertificate class.
Parameters:
Method Details
fromJson
public static BatchCertificate fromJson(JsonReader jsonReader)
Reads an instance of BatchCertificate from the JsonReader.
Parameters:
Returns:
Throws:
getCertificateFormat
public BatchCertificateFormat getCertificateFormat()
Get the certificateFormat property: The format of the Certificate data.
Returns:
getData
public byte[] getData()
Get the data property: The base64-encoded contents of the Certificate. The maximum size is 10KB.
Returns:
getDeleteCertificateError
public BatchCertificateDeleteError getDeleteCertificateError()
Get the deleteCertificateError property: The error that occurred on the last attempt to delete this Certificate. This property is set only if the Certificate is in the DeleteFailed state.
Returns:
getPassword
public String getPassword()
Get the password property: The password to access the Certificate's private key. This must be omitted if the Certificate format is cer.
Returns:
getPreviousState
public BatchCertificateState getPreviousState()
Get the previousState property: The previous state of the Certificate. This property is not set if the Certificate is in its initial active state.
Returns:
getPreviousStateTransitionTime
public OffsetDateTime getPreviousStateTransitionTime()
Get the previousStateTransitionTime property: The time at which the Certificate entered its previous state. This property is not set if the Certificate is in its initial Active state.
Returns:
getPublicData
public String getPublicData()
Get the publicData property: The public part of the Certificate as a base-64 encoded .cer file.
Returns:
getState
public BatchCertificateState getState()
Get the state property: The state of the Certificate.
Returns:
getStateTransitionTime
public OffsetDateTime getStateTransitionTime()
Get the stateTransitionTime property: The time at which the Certificate entered its current state.
Returns:
getThumbprint
public String getThumbprint()
Get the thumbprint property: The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed).
Returns:
getThumbprintAlgorithm
public String getThumbprintAlgorithm()
Get the thumbprintAlgorithm property: The algorithm used to derive the thumbprint. This must be sha1.
Returns:
getUrl
public String getUrl()
Get the url property: The URL of the Certificate.
Returns:
setCertificateFormat
public BatchCertificate setCertificateFormat(BatchCertificateFormat certificateFormat)
Set the certificateFormat property: The format of the Certificate data.
Parameters:
Returns:
setPassword
public BatchCertificate setPassword(String password)
Set the password property: The password to access the Certificate's private key. This must be omitted if the Certificate format is cer.
Parameters:
Returns: