pub struct ES256PublicKey { /* private fields */ }Implementations§
Source§impl ES256PublicKey
impl ES256PublicKey
pub fn from_bytes(raw: &[u8]) -> Result<Self, JWTError>
pub fn from_der(der: &[u8]) -> Result<Self, JWTError>
pub fn from_pem(pem: &str) -> Result<Self, JWTError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_der(&self) -> Result<Vec<u8>, JWTError>
pub fn to_pem(&self) -> Result<String, JWTError>
pub fn with_key_id(self, key_id: &str) -> Self
Trait Implementations§
Source§impl Clone for ES256PublicKey
impl Clone for ES256PublicKey
Source§fn clone(&self) -> ES256PublicKey
fn clone(&self) -> ES256PublicKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ES256PublicKey
impl Debug for ES256PublicKey
Source§impl ECDSAP256PublicKeyLike for ES256PublicKey
impl ECDSAP256PublicKeyLike for ES256PublicKey
fn jwt_alg_name() -> &'static str
fn public_key(&self) -> &P256PublicKey
fn key_id(&self) -> &Option<String>
fn set_key_id(&mut self, key_id: String)
fn verify_token<CustomClaims: Serialize + DeserializeOwned>( &self, token: &str, options: Option<VerificationOptions>, ) -> Result<JWTClaims<CustomClaims>, JWTError>
fn create_key_id(&mut self) -> Result<String, JWTError>
Auto Trait Implementations§
impl Freeze for ES256PublicKey
impl RefUnwindSafe for ES256PublicKey
impl Send for ES256PublicKey
impl Sync for ES256PublicKey
impl Unpin for ES256PublicKey
impl UnwindSafe for ES256PublicKey
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