Package com.google.cloud.kms.v1
Enum PublicKey.PublicKeyFormat
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PublicKey.PublicKeyFormat>
- Enclosing class:
- PublicKey
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 Summary
Enum ConstantsEnum ConstantDescriptionThe returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).This is supported only for PQC algorithms.The returned public key will be encoded in PEM format.If the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field is not specified: - For PQC algorithms, an error will be returnedThe returned public key is in raw bytes format defined in its standard https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).static final intThis is supported only for PQC algorithms.static final intThe returned public key will be encoded in PEM format.static final intIf the [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format] field is not specified: - For PQC algorithms, an error will be returnedstatic final intThe returned public key is in raw bytes format defined in its standard https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem. -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKey.PublicKeyFormatforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PublicKey.PublicKeyFormat>static PublicKey.PublicKeyFormatvalueOf(int value) Deprecated.static PublicKey.PublicKeyFormatvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PublicKey.PublicKeyFormatReturns 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.
-
Enum Constant Details
-
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; -
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; -
DER
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; -
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; -
UNRECOGNIZED
-
-
Field Details
-
PUBLIC_KEY_FORMAT_UNSPECIFIED_VALUE
public static final int PUBLIC_KEY_FORMAT_UNSPECIFIED_VALUEIf 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;- See Also:
-
PEM_VALUE
public static final int PEM_VALUEThe 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;- See Also:
-
DER_VALUE
public static final int DER_VALUEThe returned public key will be encoded in DER format (the PrivateKeyInfo structure from RFC 5208).
DER = 2;- See Also:
-
NIST_PQC_VALUE
public static final int NIST_PQC_VALUEThis 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;- See Also:
-
XWING_RAW_BYTES_VALUE
public static final int XWING_RAW_BYTES_VALUEThe 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;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<PublicKey.PublicKeyFormat> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static PublicKey.PublicKeyFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-