cql-io-1.1.1: Cassandra CQL client.

Safe HaskellNone
LanguageHaskell2010

Database.CQL.IO.Connection.Settings

Contents

Synopsis

Documentation

newtype ConnId Source #

Constructors

ConnId Unique 
Instances
Eq ConnId Source # 
Instance details

Defined in Database.CQL.IO.Connection.Settings

Methods

(==) :: ConnId -> ConnId -> Bool #

(/=) :: ConnId -> ConnId -> Bool #

Ord ConnId Source # 
Instance details

Defined in Database.CQL.IO.Connection.Settings

Hashable ConnId Source # 
Instance details

Defined in Database.CQL.IO.Connection.Settings

Methods

hashWithSalt :: Int -> ConnId -> Int #

hash :: ConnId -> Int #

Timeouts

Limits

Authentication

newtype AuthMechanism Source #

The (unique) name of a SASL authentication mechanism.

In the case of Cassandra, this is currently always the fully-qualified Java class name of the configured server-side IAuthenticator implementation.

Constructors

AuthMechanism Text 

data Authenticator Source #

A client authentication handler.

The fields of an Authenticator must implement the client-side of an (SASL) authentication mechanism as follows:

  • When a Cassandra server requests authentication on a new connection, authOnRequest is called with the AuthContext of the connection.
  • If additional challenges are posed by the server, authOnChallenge is called, if available, otherwise an AuthenticationError is thrown, i.e. every challenge must be answered.
  • Upon successful authentication authOnSuccess is called.

The existential type s is chosen by an implementation and can be used to thread arbitrary state through the sequence of callback invocations during an authentication exchange.

See also: RFC4422 Authentication

Constructors

Authenticator 

Fields

data AuthContext Source #

Context information given to Authenticators when the server requests authentication on a connection. See authOnRequest.

Constructors

AuthContext 

passwordAuthenticator :: AuthUser -> AuthPass -> Authenticator Source #

A password authentication handler for use with Cassandra's PasswordAuthenticator.

See: Configuring Authentication

newtype AuthUser Source #

Constructors

AuthUser Text 

newtype AuthPass Source #

Constructors

AuthPass Text