domain-auth-0.1.0: Domain authentication library

Network.DomainAuth.DK

Contents

Description

A library for DomainKeys (http://www.ietf.org/rfc/rfc4070). Currently, only receiver side is implemented.

Synopsis

Documentation

Authentication with DK

runDK :: Resolver -> Mail -> IO DAResultSource

Verifying Mail with DomainKeys.

runDK' :: Resolver -> Mail -> DK -> IO DAResultSource

Verifying Mail with DomainKeys. The value of DomainKey-Signature: should be parsed beforehand.

Parsing DomainKey-Signature:

parseDK :: RawFieldValue -> Maybe DKSource

Parsing DomainKey-Signature:.

data DK Source

Abstract type for DomainKey-Signature:

Instances

dkDomain :: DK -> DomainSource

Getting of the value of the "d" tag in DomainKey-Signature:.

dkSelector :: DK -> StringSource

Getting of the value of the "s" tag in DomainKey-Signature:.

Field key for DomainKey-Signature:

dkFieldKey :: CanonFieldKeySource

Canonicalized key for DomainKey-Signature:.