Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Phase1
- data Phase2
- initiateScram :: ScramDigest -> ByteString -> ByteString -> ByteString -> ByteString -> (AuthenticatePayload, Phase1)
- addServerFirst :: Phase1 -> ByteString -> Maybe (AuthenticatePayload, Phase2)
- addServerFinal :: Phase2 -> ByteString -> Bool
- data ScramDigest
- mechanismName :: ScramDigest -> Text
Transaction state types
Transaction step functions
:: ScramDigest | |
-> ByteString | authentication ID |
-> ByteString | authorization ID |
-> ByteString | password |
-> ByteString | nonce |
-> (AuthenticatePayload, Phase1) |
Construct client-first-message and extra parameters
needed for addServerFirst
.
:: Phase1 | output of |
-> ByteString | server first message |
-> Maybe (AuthenticatePayload, Phase2) |
Add server-first-message to current SCRAM transaction,
compute client-final-message and next state for addServerFinal
.
:: Phase2 | output of |
-> ByteString | server-final-message |
-> Bool | transaction succeeded? |
Add server-final-message to transaction and compute validatity of the whole transaction.
Digests
data ScramDigest Source #
Instances
Show ScramDigest Source # | |
Defined in Client.Authentication.Scram showsPrec :: Int -> ScramDigest -> ShowS # show :: ScramDigest -> String # showList :: [ScramDigest] -> ShowS # |
mechanismName :: ScramDigest -> Text Source #