public static enum PublicKey.PublicKeyFormat extends Enum<PublicKey.PublicKeyFormat> implements com.google.protobuf.ProtocolMessageEnum
The supported [PublicKey][google.cloud.kms.v1.PublicKey] formats.Protobuf enum
google.cloud.kms.v1.PublicKey.PublicKeyFormat| Enum Constant and Description |
|---|
NIST_PQC
This is supported only for PQC algorithms.
|
PEM
The returned public key will be encoded in PEM format.
|
PUBLIC_KEY_FORMAT_UNSPECIFIED
If the
[public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
field is not specified:
- For PQC algorithms, an error will be returned
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
NIST_PQC_VALUE
This is supported only for PQC algorithms.
|
static int |
PEM_VALUE
The returned public key will be encoded in PEM format.
|
static int |
PUBLIC_KEY_FORMAT_UNSPECIFIED_VALUE
If the
[public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
field is not specified:
- For PQC algorithms, an error will be returned
|
| Modifier and Type | Method and Description |
|---|---|
static PublicKey.PublicKeyFormat |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<PublicKey.PublicKeyFormat> |
internalGetValueMap() |
static PublicKey.PublicKeyFormat |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PublicKey.PublicKeyFormat |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PublicKey.PublicKeyFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicKey.PublicKeyFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicKey.PublicKeyFormat PUBLIC_KEY_FORMAT_UNSPECIFIED
If the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.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][google.cloud.kms.v1.PublicKey.pem] will be populated. Otherwise, the public key will be exported through the [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the requested format.
PUBLIC_KEY_FORMAT_UNSPECIFIED = 0;public static final PublicKey.PublicKeyFormat PEM
The returned public key will be encoded in PEM format. See the [RFC7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13) for more information.
PEM = 1;public static final PublicKey.PublicKeyFormat 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;public static final PublicKey.PublicKeyFormat UNRECOGNIZED
public static final int PUBLIC_KEY_FORMAT_UNSPECIFIED_VALUE
If the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.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][google.cloud.kms.v1.PublicKey.pem] will be populated. Otherwise, the public key will be exported through the [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the requested format.
PUBLIC_KEY_FORMAT_UNSPECIFIED = 0;public static final int PEM_VALUE
The returned public key will be encoded in PEM format. See the [RFC7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13) for more information.
PEM = 1;public static final int 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;public static PublicKey.PublicKeyFormat[] values()
for (PublicKey.PublicKeyFormat c : PublicKey.PublicKeyFormat.values()) System.out.println(c);
public static PublicKey.PublicKeyFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static PublicKey.PublicKeyFormat valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static PublicKey.PublicKeyFormat forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PublicKey.PublicKeyFormat> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static PublicKey.PublicKeyFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.