MCPcopy Create free account
hub / github.com/Keats/jsonwebtoken / DecodingKeyKind

Enum DecodingKeyKind

src/decoding.rs:49–59  ·  view source on GitHub ↗

Different kinds of decoding keys.

Source from the content-addressed store, hash-verified

47#[derive(Clone, Zeroize, ZeroizeOnDrop)]
48/// Different kinds of decoding keys.
49pub enum DecodingKeyKind {
50 /// A raw public key.
51 SecretOrDer(Vec<u8>),
52 /// RSA public key components.
53 RsaModulusExponent {
54 /// The modulus of the public key.
55 n: Vec<u8>,
56 /// The exponent of the public key.
57 e: Vec<u8>,
58 },
59}
60
61impl Debug for DecodingKeyKind {
62 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected