Trait askar_crypto::jwk::JwkEncoder
source · [−]pub trait JwkEncoder {
fn alg(&self) -> Option<KeyAlg>;
fn add_str(&mut self, key: &str, value: &str) -> Result<(), Error>;
fn add_as_base64(&mut self, key: &str, value: &[u8]) -> Result<(), Error>;
fn mode(&self) -> JwkEncoderMode;
fn is_public(&self) -> bool { ... }
fn is_secret(&self) -> bool { ... }
fn is_thumbprint(&self) -> bool { ... }
}
Expand description
Common interface for JWK encoders
Required Methods
Add a binary attribute to be encoded as unpadded base64-URL
fn mode(&self) -> JwkEncoderMode
fn mode(&self) -> JwkEncoderMode
Accessor for the encoder mode
Provided Methods
fn is_thumbprint(&self) -> bool
fn is_thumbprint(&self) -> bool
Check if the mode is thumbprint