Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions to process and validate SAML2 respones.
Synopsis
- validateResponse :: SAML2Config -> ByteString -> IO (Either SAML2Error Assertion)
- ansiX923 :: ByteString -> Maybe ByteString
Documentation
validateResponse :: SAML2Config -> ByteString -> IO (Either SAML2Error Assertion) Source #
validateResponse
cfg responseData
validates a SAML2 response contained
in Base64-encoded responseData
.
ansiX923 :: ByteString -> Maybe ByteString Source #
ansiX923
plaintext
removes ANSI X9.23 padding from plaintext
.
See https://en.wikipedia.org/wiki/Padding_(cryptography)#ANSI_X9.23