Struct cataclysm_jwt::jwt_session::JWTHS256Builder
source · pub struct JWTHS256Builder { /* private fields */ }
Expand description
Simple builder for HS256 session
Implementations§
source§impl JWTHS256Builder
impl JWTHS256Builder
sourcepub fn add_from_secret<A: AsRef<str>>(self, secret: A) -> Self
pub fn add_from_secret<A: AsRef<str>>(self, secret: A) -> Self
Create HS256 key from shared secret
sourcepub fn build(self) -> Result<JWTHS256Session, Error>
pub fn build(self) -> Result<JWTHS256Session, Error>
Simple builder
Trait Implementations§
source§impl Default for JWTHS256Builder
impl Default for JWTHS256Builder
source§fn default() -> JWTHS256Builder
fn default() -> JWTHS256Builder
Returns the “default value” for a type. Read more