# Interface X509CertificateDetailsOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.iot.v1.X509CertificateDetailsOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.iot.v1.X509CertificateDetailsOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.iot.v1.X509CertificateDetailsOrBuilder)

    public interface X509CertificateDetailsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getExpiryTime()

    public abstract Timestamp getExpiryTime()

The time the certificate becomes invalid.

`.google.protobuf.Timestamp expiry_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The expiryTime. |

### getExpiryTimeOrBuilder()

    public abstract TimestampOrBuilder getExpiryTimeOrBuilder()

The time the certificate becomes invalid.

`.google.protobuf.Timestamp expiry_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getIssuer()

    public abstract String getIssuer()

The entity that signed the certificate.

`string issuer = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The issuer. |

### getIssuerBytes()

    public abstract ByteString getIssuerBytes()

The entity that signed the certificate.

`string issuer = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for issuer. |

### getPublicKeyType()

    public abstract String getPublicKeyType()

The type of public key in the certificate.

`string public_key_type = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The publicKeyType. |

### getPublicKeyTypeBytes()

    public abstract ByteString getPublicKeyTypeBytes()

The type of public key in the certificate.

`string public_key_type = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for publicKeyType. |

### getSignatureAlgorithm()

    public abstract String getSignatureAlgorithm()

The algorithm used to sign the certificate.

`string signature_algorithm = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The signatureAlgorithm. |

### getSignatureAlgorithmBytes()

    public abstract ByteString getSignatureAlgorithmBytes()

The algorithm used to sign the certificate.

`string signature_algorithm = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for signatureAlgorithm. |

### getStartTime()

    public abstract Timestamp getStartTime()

The time the certificate becomes valid.

`.google.protobuf.Timestamp start_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The startTime. |

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

The time the certificate becomes valid.

`.google.protobuf.Timestamp start_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getSubject()

    public abstract String getSubject()

The entity the certificate and public key belong to.

`string subject = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The subject. |

### getSubjectBytes()

    public abstract ByteString getSubjectBytes()

The entity the certificate and public key belong to.

`string subject = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for subject. |

### hasExpiryTime()

    public abstract boolean hasExpiryTime()

The time the certificate becomes invalid.

`.google.protobuf.Timestamp expiry_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the expiryTime field is set. |

### hasStartTime()

    public abstract boolean hasStartTime()

The time the certificate becomes valid.

`.google.protobuf.Timestamp start_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |