Struct cataclysm_jwt::jwt_session::JWTRS256Session
source · pub struct JWTRS256Session {
pub aud: String,
pub iss: String,
pub verification_keys: HashMap<String, RS256>,
}
Expand description
Implementation of a RS256 session, or an assymmetric session (the most common at least)
Fields§
§aud: String
§iss: String
§verification_keys: HashMap<String, RS256>
Implementations§
source§impl JWTRS256Session
impl JWTRS256Session
sourcepub fn builder() -> JWTRS256Builder
pub fn builder() -> JWTRS256Builder
Simple builder function
Trait Implementations§
source§impl Clone for JWTRS256Session
impl Clone for JWTRS256Session
source§fn clone(&self) -> JWTRS256Session
fn clone(&self) -> JWTRS256Session
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl JWTSession for JWTRS256Session
impl JWTSession for JWTRS256Session
source§fn initial_validation(&self, jwt: &JWT) -> Result<(), Error>
fn initial_validation(&self, jwt: &JWT) -> Result<(), Error>
Should perform any kind of validation necessary before reading and manipulating the request