| Safe Haskell | None |
|---|
Network.Xmpp.Sasl.Types
- data AuthError
- = AuthXmlError
- | AuthNoAcceptableMechanism [Text]
- | AuthChallengeError
- | AuthServerAuthError
- | AuthStreamError StreamError
- | AuthConnectionError
- | AuthError
- | AuthSaslFailure SaslFailure
- | AuthStringPrepError
- data SaslElement
- = SaslSuccess (Maybe Text)
- | SaslChallenge (Maybe Text)
- type SaslM a = ErrorT AuthError (StateT XmppConnection IO) a
- type Pairs = [(ByteString, ByteString)]
- type SaslHandler = (Text, SaslM ())
Documentation
Constructors
| AuthXmlError | |
| AuthNoAcceptableMechanism [Text] | Wraps mechanisms offered |
| AuthChallengeError | |
| AuthServerAuthError | The server failed to authenticate itself |
| AuthStreamError StreamError | Stream error on stream restart TODO: Rename AuthConnectionError? |
| AuthConnectionError | Connection is closed |
| AuthError | |
| AuthSaslFailure SaslFailure | Defined SASL error condition |
| AuthStringPrepError | StringPrep failed |
data SaslElement Source
Constructors
| SaslSuccess (Maybe Text) | |
| SaslChallenge (Maybe Text) |
type SaslM a = ErrorT AuthError (StateT XmppConnection IO) aSource
SASL mechanism XmppConnection computation, with the possibility of throwing an authentication error.
type Pairs = [(ByteString, ByteString)]Source
type SaslHandler = (Text, SaslM ())Source
Tuple defining the SASL Handler's name, and a SASL mechanism computation