[−][src]Struct picky::jose::jwt::Jwt
Methods
impl<'a, C> Jwt<'a, C>
[src]
pub fn new(hashtype: SignatureHashType, claims: C) -> Self
[src]
pub fn view_claims(&self) -> &C
[src]
pub fn into_claims(self) -> C
[src]
pub fn check_signature(
&self,
encoded_token: &str,
public_key: &PublicKey
) -> Result<(), JwtError>
[src]
&self,
encoded_token: &str,
public_key: &PublicKey
) -> Result<(), JwtError>
impl<'a, C: Serialize> Jwt<'a, C>
[src]
impl<'a, C: DeserializeOwned> Jwt<'a, C>
[src]
pub fn decode(
encoded_token: &str,
validator: &JwtValidator
) -> Result<Self, JwtError>
[src]
encoded_token: &str,
validator: &JwtValidator
) -> Result<Self, JwtError>
Validate using validator and returns decoded JWT.
pub fn decode_without_validation(encoded_token: &str) -> Result<Self, JwtError>
[src]
Unsafe JWT decoding method. Signature isn't checked at all.
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for Jwt<'a, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, C> Send for Jwt<'a, C> where
C: Send,
C: Send,
impl<'a, C> Sync for Jwt<'a, C> where
C: Sync,
C: Sync,
impl<'a, C> Unpin for Jwt<'a, C> where
C: Unpin,
C: Unpin,
impl<'a, C> UnwindSafe for Jwt<'a, C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,