Enum PublicKey.KeyFormat
- java.lang.Object
-
- java.lang.Enum<PublicKey.KeyFormat>
-
- com.google.cloud.security.privateca.v1.PublicKey.KeyFormat
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<PublicKey.KeyFormat>
- Enclosing class:
- PublicKey
public static enum PublicKey.KeyFormat extends Enum<PublicKey.KeyFormat> implements com.google.protobuf.ProtocolMessageEnum
Types of public keys formats that are supported. Currently, only `PEM` format is supported.
Protobuf enumgoogle.cloud.security.privateca.v1.PublicKey.KeyFormat
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEY_FORMAT_UNSPECIFIED
Default unspecified value.PEM
The key is PEM-encoded as defined in [RFC 7468](https://tools.ietf.org/html/rfc7468).UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
KEY_FORMAT_UNSPECIFIED_VALUE
Default unspecified value.static int
PEM_VALUE
The key is PEM-encoded as defined in [RFC 7468](https://tools.ietf.org/html/rfc7468).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PublicKey.KeyFormat
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.KeyFormat>
internalGetValueMap()
static PublicKey.KeyFormat
valueOf(int value)
Deprecated.static PublicKey.KeyFormat
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static PublicKey.KeyFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static PublicKey.KeyFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEY_FORMAT_UNSPECIFIED
public static final PublicKey.KeyFormat KEY_FORMAT_UNSPECIFIED
Default unspecified value.
KEY_FORMAT_UNSPECIFIED = 0;
-
PEM
public static final PublicKey.KeyFormat PEM
The key is PEM-encoded as defined in [RFC 7468](https://tools.ietf.org/html/rfc7468). It can be any of the following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey structure, an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) or a PEM-encoded X.509 certificate signing request (CSR). If a [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) 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](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key.
PEM = 1;
-
UNRECOGNIZED
public static final PublicKey.KeyFormat UNRECOGNIZED
-
-
Field Detail
-
KEY_FORMAT_UNSPECIFIED_VALUE
public static final int KEY_FORMAT_UNSPECIFIED_VALUE
Default unspecified value.
KEY_FORMAT_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
PEM_VALUE
public static final int PEM_VALUE
The key is PEM-encoded as defined in [RFC 7468](https://tools.ietf.org/html/rfc7468). It can be any of the following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey structure, an RFC 5280 [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) or a PEM-encoded X.509 certificate signing request (CSR). If a [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1) 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](https://tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key.
PEM = 1;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PublicKey.KeyFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PublicKey.KeyFormat c : PublicKey.KeyFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublicKey.KeyFormat valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static PublicKey.KeyFormat valueOf(int value)
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
public static PublicKey.KeyFormat forNumber(int value)
- 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.KeyFormat> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static PublicKey.KeyFormat 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
-
-