KeyData

Represents a public key data along with its format.

JSON representation
{
  "format": enum (KeyFormat),
  "notBeforeTime": string,
  "notAfterTime": string,
  "key": string,
  "keySpec": enum (KeySpec)
}
Fields
format

enum (KeyFormat)

Output only. The format of the key.

notBeforeTime

string (Timestamp format)

Output only. Earliest timestamp when this key is valid. Attempts to use this key before this time will fail. Only present if the key data represents a X.509 certificate.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

notAfterTime

string (Timestamp format)

Output only. Latest timestamp when this key is valid. Attempts to use this key after this time will fail. Only present if the key data represents a X.509 certificate.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

key

string

Output only. The key data. The format of the key is represented by the format field.

keySpec

enum (KeySpec)

Required. The specifications for the key.

KeyFormat

The supported formats for the public key.

Enums
KEY_FORMAT_UNSPECIFIED No format has been specified. This is an invalid format and must not be used.
RSA_X509_PEM A RSA public key wrapped in an X.509v3 certificate (RFC5280), encoded in base64, and wrapped in public certificate label.

KeySpec

Allowed list of specifications for the key.

Enums
KEY_SPEC_UNSPECIFIED No key specification specified.
RSA_2048 A 2048 bit RSA key.
RSA_3072 A 3072 bit RSA key.
RSA_4096 A 4096 bit RSA key.