Enum PublicKey.PublicKeyFormat (2.77.0)

public enum PublicKey.PublicKeyFormat extends Enum<PublicKey.PublicKeyFormat> implements ProtocolMessageEnum

The supported PublicKey formats.

Protobuf enum google.cloud.kms.v1.PublicKey.PublicKeyFormat

Implements

ProtocolMessageEnum

Static Fields

Name Description
DER

The returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).

DER = 2;

DER_VALUE

The returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).

DER = 2;

NIST_PQC

This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205).

NIST_PQC = 3;

NIST_PQC_VALUE

This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205).

NIST_PQC = 3;

PEM

The returned public key will be encoded in PEM format. See the RFC7468 sections for General Considerations and Textual Encoding of Subject Public Key Info for more information.

PEM = 1;

PEM_VALUE

The returned public key will be encoded in PEM format. See the RFC7468 sections for General Considerations and Textual Encoding of Subject Public Key Info for more information.

PEM = 1;

PUBLIC_KEY_FORMAT_UNSPECIFIED

If the public_key_format field is not specified:

  • For PQC algorithms, an error will be returned.
  • For non-PQC algorithms, the default format is PEM, and the field pem will be populated.

    Otherwise, the public key will be exported through the public_key field in the requested format.

PUBLIC_KEY_FORMAT_UNSPECIFIED = 0;

PUBLIC_KEY_FORMAT_UNSPECIFIED_VALUE

If the public_key_format field is not specified:

  • For PQC algorithms, an error will be returned.
  • For non-PQC algorithms, the default format is PEM, and the field pem will be populated.

    Otherwise, the public key will be exported through the public_key field in the requested format.

PUBLIC_KEY_FORMAT_UNSPECIFIED = 0;

UNRECOGNIZED
XWING_RAW_BYTES

The returned public key is in raw bytes format defined in its standard https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.

XWING_RAW_BYTES = 4;

XWING_RAW_BYTES_VALUE

The returned public key is in raw bytes format defined in its standard https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem.

XWING_RAW_BYTES = 4;

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()