Enum PublicKey.KeyFormat (2.3.0)

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

Types of public keys formats that are supported. Currently, only PEM format is supported.

Protobuf enum google.cloud.security.privateca.v1.PublicKey.KeyFormat

Implements

ProtocolMessageEnum

Static Fields

NameDescription
KEY_FORMAT_UNSPECIFIED

Default unspecified value.

KEY_FORMAT_UNSPECIFIED = 0;

KEY_FORMAT_UNSPECIFIED_VALUE

Default unspecified value.

KEY_FORMAT_UNSPECIFIED = 0;

PEM

The key is PEM-encoded as defined in RFC 7468. It can be any of the following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey structure, an RFC 5280 SubjectPublicKeyInfo or a PEM-encoded X.509 certificate signing request (CSR). If a SubjectPublicKeyInfo is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified, it will used solely for the purpose of extracting the public key. When generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key.

PEM = 1;

PEM_VALUE

The key is PEM-encoded as defined in RFC 7468. It can be any of the following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey structure, an RFC 5280 SubjectPublicKeyInfo or a PEM-encoded X.509 certificate signing request (CSR). If a SubjectPublicKeyInfo is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified, it will used solely for the purpose of extracting the public key. When generated by the service, it will always be an RFC 5280 SubjectPublicKeyInfo structure containing an algorithm identifier and a key.

PEM = 1;

UNRECOGNIZED

Static Methods

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()