Struct jsonwebtokens::VerifierBuilder [−][src]
pub struct VerifierBuilder { /* fields omitted */ }
Expand description
Configures the requirements for checking token claims with a builder-pattern API
Implementations
Convenience for string_equals(“iss”, “value”)
Convenience for string_or_array_contains(“aud”, “value”)
Convenience for string_equals(“sub”, “value”)
Convenience for string_equals(“nonce”, “value”)
Check that a claim has a specific string value
Check that a claim equals one of the given string values
Check that the claim matches the given regular expression
Check that the claim matches one of the given regular expressions
pub fn string_or_array_contains(
&mut self,
claim: impl Into<String>,
value: impl Into<String>
) -> &mut Self
Sets a leeway (in seconds) should be allowed when checking exp, nbf and iat claims
Don’t check the ‘exp’ expiry claim
Don’t check the ‘nbf’ not before claim
Don’t check the ‘iat’ issued at claim
Check a claim Value
manually, returning true
if ok, else false