pub enum KeyMaterial {
Ed25519Pem(String),
Ed25519Jwk(String),
HmacSecret(Vec<u8>),
}Expand description
Verification key material, bound to a kid.
Variants§
Ed25519Pem(String)
Ed25519 public key, SPKI PEM (-----BEGIN PUBLIC KEY-----). EdDSA.
Ed25519Jwk(String)
Ed25519 JWK x coordinate, base64url without padding.
HmacSecret(Vec<u8>)
HMAC shared secret. HS256 (dev / shared-secret IdP integrations).
Trait Implementations§
Source§impl Clone for KeyMaterial
impl Clone for KeyMaterial
Source§fn clone(&self) -> KeyMaterial
fn clone(&self) -> KeyMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyMaterial
impl RefUnwindSafe for KeyMaterial
impl Send for KeyMaterial
impl Sync for KeyMaterial
impl Unpin for KeyMaterial
impl UnsafeUnpin for KeyMaterial
impl UnwindSafe for KeyMaterial
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