Struct iron_csrf::HmacCsrfProtection
[−]
[src]
pub struct HmacCsrfProtection { /* fields omitted */ }
pub struct HmacCsrfProtection { /* fields omitted */ }
impl HmacCsrfProtection
[src]fn new(key: SigningKey, ttl_seconds: Option<i64>) -> Self
impl CsrfProtection for HmacCsrfProtection
[src]fn generate_token(&self) -> Result<CsrfToken, String>
fn validate_token(&self, token: &CsrfToken) -> Result<bool, String>