Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions to process and validate SAML2 respones.
Synopsis
- validateResponse :: SAML2Config -> ByteString -> IO (Either SAML2Error (Assertion, Response))
- decodeResponse :: ByteString -> ExceptT SAML2Error IO (Document, Response)
- validateSAMLResponse :: SAML2Config -> Document -> Response -> UTCTime -> ExceptT SAML2Error IO Assertion
- ansiX923 :: ByteString -> Maybe ByteString
Documentation
validateResponse :: SAML2Config -> ByteString -> IO (Either SAML2Error (Assertion, Response)) Source #
validateResponse
cfg responseData
validates a SAML2 response contained
in Base64-encoded responseData
.
decodeResponse :: ByteString -> ExceptT SAML2Error IO (Document, Response) Source #
decodeResponse
responseData
decodes a SAML2 response contained
in Base64-encoded responseData
.
Since: 0.4
validateSAMLResponse :: SAML2Config -> Document -> Response -> UTCTime -> ExceptT SAML2Error IO Assertion Source #
validateSAMLResponse
cfg doc response timestamp
validates a decoded SAML2
response using the given timestamp
.
Since: 0.4
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