public enum PublicKeyFormat extends Enum<PublicKeyFormat> implements ProtocolMessageEnum
The supported formats for the public key.Protobuf enum
google.cloud.iot.v1.PublicKeyFormat
Enum Constant and Description |
---|
ES256_PEM
Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
PUBLIC KEY-----`.
|
ES256_X509_PEM
As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
`-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
|
RSA_PEM
An RSA public key encoded in base64, and wrapped by
`-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`.
|
RSA_X509_PEM
As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
`-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
|
UNRECOGNIZED |
UNSPECIFIED_PUBLIC_KEY_FORMAT
The format has not been specified.
|
Modifier and Type | Field and Description |
---|---|
static int |
ES256_PEM_VALUE
Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
PUBLIC KEY-----`.
|
static int |
ES256_X509_PEM_VALUE
As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
`-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
|
static int |
RSA_PEM_VALUE
An RSA public key encoded in base64, and wrapped by
`-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`.
|
static int |
RSA_X509_PEM_VALUE
As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
`-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
|
static int |
UNSPECIFIED_PUBLIC_KEY_FORMAT_VALUE
The format has not been specified.
|
Modifier and Type | Method and Description |
---|---|
static PublicKeyFormat |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<PublicKeyFormat> |
internalGetValueMap() |
static PublicKeyFormat |
valueOf(Descriptors.EnumValueDescriptor desc) |
static PublicKeyFormat |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PublicKeyFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicKeyFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicKeyFormat UNSPECIFIED_PUBLIC_KEY_FORMAT
The format has not been specified. This is an invalid default value and must not be used.
UNSPECIFIED_PUBLIC_KEY_FORMAT = 0;
public static final PublicKeyFormat RSA_PEM
An RSA public key encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify `RS256` signatures in JWT tokens ([RFC7518]( https://www.ietf.org/rfc/rfc7518.txt)).
RSA_PEM = 3;
public static final PublicKeyFormat RSA_X509_PEM
As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
RSA_X509_PEM = 1;
public static final PublicKeyFormat ES256_PEM
Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify JWT tokens with the `ES256` algorithm ([RFC7518](https://www.ietf.org/rfc/rfc7518.txt)). This curve is defined in [OpenSSL](https://www.openssl.org/) as the `prime256v1` curve.
ES256_PEM = 2;
public static final PublicKeyFormat ES256_X509_PEM
As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
ES256_X509_PEM = 4;
public static final PublicKeyFormat UNRECOGNIZED
public static final int UNSPECIFIED_PUBLIC_KEY_FORMAT_VALUE
The format has not been specified. This is an invalid default value and must not be used.
UNSPECIFIED_PUBLIC_KEY_FORMAT = 0;
public static final int RSA_PEM_VALUE
An RSA public key encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify `RS256` signatures in JWT tokens ([RFC7518]( https://www.ietf.org/rfc/rfc7518.txt)).
RSA_PEM = 3;
public static final int RSA_X509_PEM_VALUE
As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
RSA_X509_PEM = 1;
public static final int ES256_PEM_VALUE
Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be used to verify JWT tokens with the `ES256` algorithm ([RFC7518](https://www.ietf.org/rfc/rfc7518.txt)). This curve is defined in [OpenSSL](https://www.openssl.org/) as the `prime256v1` curve.
ES256_PEM = 2;
public static final int ES256_X509_PEM_VALUE
As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280]( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
ES256_X509_PEM = 4;
public static PublicKeyFormat[] values()
for (PublicKeyFormat c : PublicKeyFormat.values()) System.out.println(c);
public static 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static PublicKeyFormat valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static PublicKeyFormat forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<PublicKeyFormat> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static PublicKeyFormat valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.