u2f-0.1.0.1: Haskell Universal Two Factor helper toolbox library thing

Safe HaskellNone
LanguageHaskell2010

U2F.Types

Synopsis

Documentation

data Transport Source #

Constructors

BT

Bluetooth Classic (Bluetooth BR/EDR)

BLE

Bluetooth Low Energy (Bluetooth Smart)

NFC

Near-Field Communications

USB

USB HID (Human Interface Device)

Instances
Eq Transport Source # 
Instance details

Defined in U2F.Types

Show Transport Source # 
Instance details

Defined in U2F.Types

data Request Source #

Generic request for old version of protocol. Probably want to remove

Constructors

Request 
Instances
Eq Request Source # 
Instance details

Defined in U2F.Types

Methods

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

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

Show Request Source # 
Instance details

Defined in U2F.Types

Generic Request Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep Request :: Type -> Type #

Methods

from :: Request -> Rep Request x #

to :: Rep Request x -> Request #

ToJSON Request Source # 
Instance details

Defined in U2F.Types

FromJSON Request Source # 
Instance details

Defined in U2F.Types

type Rep Request Source # 
Instance details

Defined in U2F.Types

data RegisterRequest Source #

Instances
Show RegisterRequest Source # 
Instance details

Defined in U2F.Types

Generic RegisterRequest Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep RegisterRequest :: Type -> Type #

ToJSON RegisterRequest Source # 
Instance details

Defined in U2F.Types

FromJSON RegisterRequest Source # 
Instance details

Defined in U2F.Types

type Rep RegisterRequest Source # 
Instance details

Defined in U2F.Types

type Rep RegisterRequest = D1 (MetaData "RegisterRequest" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "RegisterRequest" PrefixI True) (S1 (MetaSel (Just "registerRequest_version") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "registerRequest_challenge") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data RegisteredKey Source #

Instances
Eq RegisteredKey Source # 
Instance details

Defined in U2F.Types

Show RegisteredKey Source # 
Instance details

Defined in U2F.Types

Generic RegisteredKey Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep RegisteredKey :: Type -> Type #

type Rep RegisteredKey Source # 
Instance details

Defined in U2F.Types

type Rep RegisteredKey = D1 (MetaData "RegisteredKey" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "RegisteredKey" PrefixI True) ((S1 (MetaSel (Just "registeredKey_version") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "registeredKey_keyHandle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "registeredKey_transports") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Transport])) :*: S1 (MetaSel (Just "registeredKey_appId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))

data Registration Source #

Instances
Show Registration Source # 
Instance details

Defined in U2F.Types

Generic Registration Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep Registration :: Type -> Type #

ToJSON Registration Source # 
Instance details

Defined in U2F.Types

FromJSON Registration Source # 
Instance details

Defined in U2F.Types

type Rep Registration Source # 
Instance details

Defined in U2F.Types

type Rep Registration = D1 (MetaData "Registration" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "Registration" PrefixI True) ((S1 (MetaSel (Just "registration_registrationData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "registration_challenge") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "registration_version") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "registration_appId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "registration_clientData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "registration_sessionID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))))

data RegistrationData Source #

Instances
Show RegistrationData Source # 
Instance details

Defined in U2F.Types

Generic RegistrationData Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep RegistrationData :: Type -> Type #

type Rep RegistrationData Source # 
Instance details

Defined in U2F.Types

type Rep RegistrationData = D1 (MetaData "RegistrationData" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "RegistrationData" PrefixI True) ((S1 (MetaSel (Just "registrationData_reserved") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString) :*: S1 (MetaSel (Just "registrationData_publicKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)) :*: (S1 (MetaSel (Just "registrationData_keyHandle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString) :*: (S1 (MetaSel (Just "registrationData_certificate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString) :*: S1 (MetaSel (Just "registrationData_signature") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))))

data Signin Source #

Instances
Eq Signin Source # 
Instance details

Defined in U2F.Types

Methods

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

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

Show Signin Source # 
Instance details

Defined in U2F.Types

Generic Signin Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep Signin :: Type -> Type #

Methods

from :: Signin -> Rep Signin x #

to :: Rep Signin x -> Signin #

FromJSON Signin Source # 
Instance details

Defined in U2F.Types

type Rep Signin Source # 
Instance details

Defined in U2F.Types

type Rep Signin = D1 (MetaData "Signin" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "Signin" PrefixI True) (S1 (MetaSel (Just "signin_keyHandle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "signin_clientData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "signin_signatureData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))

data ClientData Source #

Instances
Eq ClientData Source # 
Instance details

Defined in U2F.Types

Show ClientData Source # 
Instance details

Defined in U2F.Types

Generic ClientData Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep ClientData :: Type -> Type #

FromJSON ClientData Source # 
Instance details

Defined in U2F.Types

type Rep ClientData Source # 
Instance details

Defined in U2F.Types

type Rep ClientData = D1 (MetaData "ClientData" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "ClientData" PrefixI True) ((S1 (MetaSel (Just "clientData_typ") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "clientData_challenge") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "clientData_origin") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "clientData_cid_pubkey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))

data SignatureData Source #

Instances
Show SignatureData Source # 
Instance details

Defined in U2F.Types

Generic SignatureData Source # 
Instance details

Defined in U2F.Types

Associated Types

type Rep SignatureData :: Type -> Type #

type Rep SignatureData Source # 
Instance details

Defined in U2F.Types

type Rep SignatureData = D1 (MetaData "SignatureData" "U2F.Types" "u2f-0.1.0.1-JsMfAtuqGk5AxWwvaAlbmw" False) (C1 (MetaCons "SignatureData" PrefixI True) (S1 (MetaSel (Just "signatureData_userPresenceFlag") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString) :*: (S1 (MetaSel (Just "signatureData_counter") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString) :*: S1 (MetaSel (Just "signatureData_signature") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))))