# Google Certificate Authority Service V1 Client - Class RevocationReason (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class RevocationReason.

A [RevocationReason](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.RevocationReason)
indicates whether a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) has been
revoked, and the reason for revocation. These correspond to standard
revocation reasons from RFC 5280. Note that the enum labels and values in
this definition are not the same ASN.1 values defined in RFC 5280. These
values will be translated to the correct ASN.1 values when a CRL is created.

Protobuf type `google.cloud.security.privateca.v1.RevocationReason`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### REVOCATION_REASON_UNSPECIFIED

    Value: 0

Default unspecified value. This value does indicate that a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) has been
revoked, but that a reason has not been recorded.

Generated from protobuf enum `REVOCATION_REASON_UNSPECIFIED = 0;`

### KEY_COMPROMISE

    Value: 1

Key material for this
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) may have
leaked.

Generated from protobuf enum `KEY_COMPROMISE = 1;`

### CERTIFICATE_AUTHORITY_COMPROMISE

    Value: 2

The key material for a certificate authority in the issuing path may have
leaked.

Generated from protobuf enum `CERTIFICATE_AUTHORITY_COMPROMISE = 2;`

### AFFILIATION_CHANGED

    Value: 3

The subject or other attributes in this
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) have changed.

Generated from protobuf enum `AFFILIATION_CHANGED = 3;`

### SUPERSEDED

    Value: 4

This [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) has been
superseded.

Generated from protobuf enum `SUPERSEDED = 4;`

### CESSATION_OF_OPERATION

    Value: 5

This [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) or
entities in the issuing path have ceased to operate.

Generated from protobuf enum `CESSATION_OF_OPERATION = 5;`

### CERTIFICATE_HOLD

    Value: 6

This [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) should
not be considered valid, it is expected that it may become valid in the
future.

Generated from protobuf enum `CERTIFICATE_HOLD = 6;`

### PRIVILEGE_WITHDRAWN

    Value: 7

This [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) no
longer has permission to assert the listed attributes.

Generated from protobuf enum `PRIVILEGE_WITHDRAWN = 7;`

### ATTRIBUTE_AUTHORITY_COMPROMISE

    Value: 8

The authority which determines appropriate attributes for a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) may have been
compromised.

Generated from protobuf enum `ATTRIBUTE_AUTHORITY_COMPROMISE = 8;`