pub struct PublicKey { /* private fields */ }Expand description
A public key with key-validation capabilities.
Implementations§
Source§impl PublicKey
impl PublicKey
pub fn key_type(&self) -> KeyType
pub fn set_kid(&mut self, kid: Option<String>)
pub fn from_bare_public_key( kid: Option<String>, key: BarePublicKey, ) -> Result<Self, KeyError>
pub fn validate( &self, token: &str, ctx: &ValidationContext, ) -> Result<HashMap<String, Any>, ValidationError>
Trait Implementations§
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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