Enum alcoholic_jwt::Validation[][src]

pub enum Validation {
    Issuer(String),
    Audience(String),
    SubjectPresent,
    NotExpired,
}

Possible token claim validations. This enumeration only covers common use-cases, for other types of validations the user is encouraged to inspect the claim set manually.

Variants

Validate that the issuer ("iss") claim matches a specified value.

Validate that the audience ("aud") claim matches a specified value.

Validate that a subject value is present.

Validate that the expiry time of the token ("exp"-claim) has not yet been reached.

Auto Trait Implementations

impl Send for Validation

impl Sync for Validation