Struct jwt::Token [] [src]

pub struct Token<H, C> where
    H: Component,
    C: Component
{ pub header: H, pub claims: C, // some fields omitted }

Fields

Methods

impl<H, C> Token<H, C> where
    H: Component,
    C: Component
[src]

Parse a token from a string.

Verify a from_base64d token with a key and a given hashing algorithm. Make sure to check the token's algorithm before applying.

Generate the signed token from a key and a given hashing algorithm.

Trait Implementations

impl<H: Debug, C: Debug> Debug for Token<H, C> where
    H: Component,
    C: Component
[src]

Formats the value using the given formatter.

impl<H: Default, C: Default> Default for Token<H, C> where
    H: Component,
    C: Component
[src]

Returns the "default value" for a type. Read more

impl<H, C> PartialEq for Token<H, C> where
    H: Component + PartialEq,
    C: Component + PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.