webauthn-0.1.0.0: Relying party (server) implementation of the WebAuthn 2 specification
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Crypto.WebAuthn.Metadata.Statement.Types

Description

This module contains additional Haskell-specific type definitions for the FIDO Metadata Statement specification

Synopsis

Documentation

data MetadataStatement (p :: ProtocolKind) Source #

Instances

Instances details
Eq (MetadataStatement p) Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

Show (MetadataStatement p) Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

Generic (MetadataStatement p) Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

Associated Types

type Rep (MetadataStatement p) :: Type -> Type #

ToJSON (MetadataStatement p) Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

type Rep (MetadataStatement p) Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

type Rep (MetadataStatement p) = D1 ('MetaData "MetadataStatement" "Crypto.WebAuthn.Metadata.Statement.Types" "webauthn-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MetadataStatement" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "msLegalHeader") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "msDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "msAlternativeDescriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AlternativeDescriptions)) :*: (S1 ('MetaSel ('Just "msAuthenticatorVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32) :*: S1 ('MetaSel ('Just "msUpv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (ProtocolVersion p)))))) :*: ((S1 ('MetaSel ('Just "msAuthenticationAlgorithms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty AuthenticationAlgorithm)) :*: (S1 ('MetaSel ('Just "msPublicKeyAlgAndEncodings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PublicKeyRepresentationFormat)) :*: S1 ('MetaSel ('Just "msAttestationTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty WebauthnAttestationType)))) :*: (S1 ('MetaSel ('Just "msUserVerificationDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty VerificationMethodANDCombinations)) :*: (S1 ('MetaSel ('Just "msKeyProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty KeyProtectionType)) :*: S1 ('MetaSel ('Just "msIsKeyRestricted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "msIsFreshUserVerificationRequired") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "msMatcherProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty MatcherProtectionType))) :*: (S1 ('MetaSel ('Just "msCryptoStrength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word16)) :*: (S1 ('MetaSel ('Just "msAttachmentHint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty AuthenticatorAttachmentHint)) :*: S1 ('MetaSel ('Just "msTcDisplay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TransactionConfirmationDisplayType])))) :*: ((S1 ('MetaSel ('Just "msTcDisplayContentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "msTcDisplayPNGCharacteristics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty DisplayPNGCharacteristicsDescriptor))) :*: S1 ('MetaSel ('Just "msAttestationRootCertificates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty SignedCertificate)))) :*: (S1 ('MetaSel ('Just "msIcon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ByteString)) :*: (S1 ('MetaSel ('Just "msSupportedExtensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty ExtensionDescriptor))) :*: S1 ('MetaSel ('Just "msAuthenticatorGetInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AuthenticatorGetInfo))))))))

data ProtocolVersion (p :: ProtocolKind) where Source #

FIDO protocol versions, parametrized by the protocol family

Constructors

U2F1_0 :: ProtocolVersion 'FidoU2F

FIDO U2F 1.0

U2F1_1 :: ProtocolVersion 'FidoU2F

FIDO U2F 1.1

U2F1_2 :: ProtocolVersion 'FidoU2F

FIDO U2F 1.2

CTAP2_0 :: ProtocolVersion 'Fido2

FIDO 2, CTAP 2.0

CTAP2_1 :: ProtocolVersion 'Fido2

FIDO 2, CTAP 2.1

data WebauthnAttestationType Source #

Values of AuthenticatorAttestationType but limited to the ones possible with Webauthn, see https://www.w3.org/TR/webauthn-2/#sctn-attestation-types

Instances

Instances details
Eq WebauthnAttestationType Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

Show WebauthnAttestationType Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

Generic WebauthnAttestationType Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

Associated Types

type Rep WebauthnAttestationType :: Type -> Type #

ToJSON WebauthnAttestationType Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

type Rep WebauthnAttestationType Source # 
Instance details

Defined in Crypto.WebAuthn.Metadata.Statement.Types

type Rep WebauthnAttestationType = D1 ('MetaData "WebauthnAttestationType" "Crypto.WebAuthn.Metadata.Statement.Types" "webauthn-0.1.0.0-inplace" 'False) (C1 ('MetaCons "WebauthnAttestationBasic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WebauthnAttestationAttCA" 'PrefixI 'False) (U1 :: Type -> Type))