Struct iron_hmac::Hmac256Authentication
[−]
[src]
pub struct Hmac256Authentication {
// some fields omitted
}Iron middleware for validation hmac headers on requests and signing responses.
Methods
impl Hmac256Authentication
fn middleware<K: Into<SecretKey>, S: Into<String>>(secret: K, hmac_header_key: S) -> (Hmac256Authentication, Hmac256Authentication)[−]
Build Hmac256Authentication BeforeMiddleware and AfterMiddleware
The secret parameter is used for all HMAC generation. The hmac_header_key is used to
lookup the request's HMAC.