#[non_exhaustive]pub enum SignatureKey {
Jwt(String),
JwksUri {
id: String,
dwk: String,
kid: String,
},
Hwk,
}Expand description
How the verifier finds the signer’s key: the Signature-Key scheme.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Jwt(String)
A JWT whose cnf.jwk is the key: agent, person and auth tokens.
JwksUri
A server’s published key: {id}/.well-known/{dwk} names a jwks_uri.
Fields
Hwk
The key itself, inline: a pseudonymous agent.
Trait Implementations§
Source§impl Clone for SignatureKey
impl Clone for SignatureKey
Source§impl Debug for SignatureKey
impl Debug for SignatureKey
impl Eq for SignatureKey
Source§impl PartialEq for SignatureKey
impl PartialEq for SignatureKey
impl StructuralPartialEq for SignatureKey
Auto Trait Implementations§
impl Freeze for SignatureKey
impl RefUnwindSafe for SignatureKey
impl Send for SignatureKey
impl Sync for SignatureKey
impl Unpin for SignatureKey
impl UnsafeUnpin for SignatureKey
impl UnwindSafe for SignatureKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more