NAME
Authen::HTTP::Signature::Method::HMAC - Compute digest using a symmetric key
PURPOSE
This class uses a symmetric key to compute a HTTP signature digest. It implements the HMAC-SHA{1, 256, 512} algorithms.
ATTRIBUTES
These are Perlish mutators; pass a value to set it, pass no value to get the current value.
- key
-
Key material. Read-only. Required.
- data
-
The data to be signed. Read-only. Required.
- hash
-
The algorithm to generate the digest. Read-only. Required.
METHODS
- verify()
-
Compares the given signature to a computed one. Returns true if they are the same. False otherwise.