Share via


RevokeCertificate Class

  • java.lang.Object
    • com.azure.resourcemanager.trustedsigning.models.RevokeCertificate

Implements

public final class RevokeCertificate
implements JsonSerializable<RevokeCertificate>

Defines the certificate revocation properties.

Constructor Summary

Constructor Description
RevokeCertificate()

Creates an instance of RevokeCertificate class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime effectiveAt()

Get the effectiveAt property: The timestamp when the revocation is effective.

static RevokeCertificate fromJson(JsonReader jsonReader)

Reads an instance of RevokeCertificate from the JsonReader.

String reason()

Get the reason property: Reason for the revocation.

String remarks()

Get the remarks property: Remarks for the revocation.

String serialNumber()

Get the serialNumber property: Serial number of the certificate.

String thumbprint()

Get the thumbprint property: Thumbprint of the certificate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RevokeCertificate withEffectiveAt(OffsetDateTime effectiveAt)

Set the effectiveAt property: The timestamp when the revocation is effective.

RevokeCertificate withReason(String reason)

Set the reason property: Reason for the revocation.

RevokeCertificate withRemarks(String remarks)

Set the remarks property: Remarks for the revocation.

RevokeCertificate withSerialNumber(String serialNumber)

Set the serialNumber property: Serial number of the certificate.

RevokeCertificate withThumbprint(String thumbprint)

Set the thumbprint property: Thumbprint of the certificate.

Methods inherited from java.lang.Object

Constructor Details

RevokeCertificate

public RevokeCertificate()

Creates an instance of RevokeCertificate class.

Method Details

effectiveAt

public OffsetDateTime effectiveAt()

Get the effectiveAt property: The timestamp when the revocation is effective.

Returns:

the effectiveAt value.

fromJson

public static RevokeCertificate fromJson(JsonReader jsonReader)

Reads an instance of RevokeCertificate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RevokeCertificate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

reason

public String reason()

Get the reason property: Reason for the revocation.

Returns:

the reason value.

remarks

public String remarks()

Get the remarks property: Remarks for the revocation.

Returns:

the remarks value.

serialNumber

public String serialNumber()

Get the serialNumber property: Serial number of the certificate.

Returns:

the serialNumber value.

thumbprint

public String thumbprint()

Get the thumbprint property: Thumbprint of the certificate.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEffectiveAt

public RevokeCertificate withEffectiveAt(OffsetDateTime effectiveAt)

Set the effectiveAt property: The timestamp when the revocation is effective.

Parameters:

effectiveAt - the effectiveAt value to set.

Returns:

the RevokeCertificate object itself.

withReason

public RevokeCertificate withReason(String reason)

Set the reason property: Reason for the revocation.

Parameters:

reason - the reason value to set.

Returns:

the RevokeCertificate object itself.

withRemarks

public RevokeCertificate withRemarks(String remarks)

Set the remarks property: Remarks for the revocation.

Parameters:

remarks - the remarks value to set.

Returns:

the RevokeCertificate object itself.

withSerialNumber

public RevokeCertificate withSerialNumber(String serialNumber)

Set the serialNumber property: Serial number of the certificate.

Parameters:

serialNumber - the serialNumber value to set.

Returns:

the RevokeCertificate object itself.

withThumbprint

public RevokeCertificate withThumbprint(String thumbprint)

Set the thumbprint property: Thumbprint of the certificate.

Parameters:

thumbprint - the thumbprint value to set.

Returns:

the RevokeCertificate object itself.

Applies to