Struct biscuit::RegisteredClaims [] [src]

pub struct RegisteredClaims {
    pub issuer: Option<StringOrUri>,
    pub subject: Option<StringOrUri>,
    pub audience: Option<SingleOrMultiple<StringOrUri>>,
    pub expiry: Option<Timestamp>,
    pub not_before: Option<Timestamp>,
    pub issued_at: Option<Timestamp>,
    pub id: Option<String>,
}

Registered claims defined by RFC7519#4.1

Fields

Token issuer. Serialized to iss.

Subject where the JWT is referring to. Serialized to sub

Audience intended for the JWT. Serialized to aud

Expiration time in seconds since Unix Epoch. Serialized to exp

Not before time in seconds since Unix Epoch. Serialized to nbf

Issued at Time in seconds since Unix Epoch. Serialized to iat

Application specific JWT ID. Serialized to jti

Methods

impl RegisteredClaims
[src]

Validate the temporal claims in the token

Trait Implementations

impl Clone for RegisteredClaims
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RegisteredClaims
[src]

Formats the value using the given formatter.

impl Eq for RegisteredClaims
[src]

impl PartialEq for RegisteredClaims
[src]

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

This method tests for !=.

impl Default for RegisteredClaims
[src]

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