Struct josekit::jwt::JwtPayloadValidator [−][src]
pub struct JwtPayloadValidator { /* fields omitted */ }
Expand description
Represents JWT payload validator.
Implementations
Return the base time for time related claims (exp, nbf) validation.
Set a minimum time for issued at payload claim (iat) validation.
Arguments
min_issued_time
- a minimum time at which the JWT was issued.
Return the minimum time for issued at payload claim (iat).
Set a maximum time for issued at payload claim (iat) validation.
Arguments
max_issued_time
- a maximum time at which the JWT was issued.
Return the maximum time for issued at payload claim (iat).
Return the value for issuer payload claim (iss) validation.
Return the value for subject payload claim (sub) validation.
Return the value for audience payload claim (aud) validation.
Return the value for JWT ID payload claim (jti) validation.
Set a value for payload claim of a specified key.
Arguments
key
- a key name of payload claimvalue
- a typed value of payload claim
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for JwtPayloadValidator
impl Send for JwtPayloadValidator
impl Sync for JwtPayloadValidator
impl Unpin for JwtPayloadValidator
impl UnwindSafe for JwtPayloadValidator
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.