Safe Haskell | None |
---|---|
Language | Haskell2010 |
These functions are intended only to be used internally by this package. No API stability is guaranteed for this module. If you see functions here which you believe should be promoted to a stable API, please contact the author.
- calculateMac :: HawkAlgoCls a => a -> Key -> HawkType -> HeaderArtifacts -> ByteString
- escapeHeaderAttribute :: ByteString -> ByteString
- hawkHeaderString :: [(ByteString, ByteString)] -> ByteString
- calculateTsMac :: HawkAlgoCls a => a -> POSIXTime -> ByteString
- calculatePayloadHash :: HawkAlgoCls a => a -> PayloadInfo -> ByteString
- checkPayloadHash :: HawkAlgoCls a => a -> Maybe ByteString -> Maybe PayloadInfo -> Either String ()
- checkPayloadHashMaybe :: HawkAlgoCls a => a -> Maybe ByteString -> Maybe PayloadInfo -> Maybe Bool
- hServerAuthorization :: HeaderName
- data HawkType
- type Authorization = ByteString
Documentation
calculateMac :: HawkAlgoCls a => a -> Key -> HawkType -> HeaderArtifacts -> ByteString Source #
Generates a hawk.1.
string with the given attributes,
calculates its HMAC, and returns the Base64 encoded hash.
hawkHeaderString :: [(ByteString, ByteString)] -> ByteString Source #
calculateTsMac :: HawkAlgoCls a => a -> POSIXTime -> ByteString Source #
calculatePayloadHash :: HawkAlgoCls a => a -> PayloadInfo -> ByteString Source #
checkPayloadHash :: HawkAlgoCls a => a -> Maybe ByteString -> Maybe PayloadInfo -> Either String () Source #
checkPayloadHashMaybe :: HawkAlgoCls a => a -> Maybe ByteString -> Maybe PayloadInfo -> Maybe Bool Source #
hServerAuthorization :: HeaderName Source #
The name of the authorization header which the server provides to the client.
type Authorization = ByteString Source #
The value of an Authorization
header.