pontarius-xmpp-0.1.0.2: An incomplete implementation of RFC 6120 (XMPP: Core)

Safe HaskellNone

Network.Xmpp.Sasl.Types

Synopsis

Documentation

data AuthError Source

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

type SaslM a = ErrorT AuthError (StateT XmppConnection IO) aSource

SASL mechanism XmppConnection computation, with the possibility of throwing an authentication error.

type SaslHandler = (Text, SaslM ())Source

Tuple defining the SASL Handler's name, and a SASL mechanism computation