Enum googapis::google::cloud::iot::v1::PublicKeyFormat [−][src]
#[repr(i32)]
pub enum PublicKeyFormat {
UnspecifiedPublicKeyFormat,
RsaPem,
RsaX509Pem,
Es256Pem,
Es256X509Pem,
}
Expand description
The supported formats for the public key.
Variants
The format has not been specified. This is an invalid default value and must not be used.
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)).
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-----
.
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.
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-----
.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PublicKeyFormat
impl Send for PublicKeyFormat
impl Sync for PublicKeyFormat
impl Unpin for PublicKeyFormat
impl UnwindSafe for PublicKeyFormat
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more