Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Crypto.WebAuthn.Metadata.Statement.Types
Description
This module contains additional Haskell-specific type definitions for the FIDO Metadata Statement specification
Synopsis
- data MetadataStatement (p :: ProtocolKind) = MetadataStatement {
- msLegalHeader :: Text
- msDescription :: Text
- msAlternativeDescriptions :: Maybe AlternativeDescriptions
- msAuthenticatorVersion :: Word32
- msUpv :: NonEmpty (ProtocolVersion p)
- msAuthenticationAlgorithms :: NonEmpty AuthenticationAlgorithm
- msPublicKeyAlgAndEncodings :: NonEmpty PublicKeyRepresentationFormat
- msAttestationTypes :: NonEmpty WebauthnAttestationType
- msUserVerificationDetails :: NonEmpty VerificationMethodANDCombinations
- msKeyProtection :: NonEmpty KeyProtectionType
- msIsKeyRestricted :: Maybe Bool
- msIsFreshUserVerificationRequired :: Maybe Bool
- msMatcherProtection :: NonEmpty MatcherProtectionType
- msCryptoStrength :: Maybe Word16
- msAttachmentHint :: NonEmpty AuthenticatorAttachmentHint
- msTcDisplay :: [TransactionConfirmationDisplayType]
- msTcDisplayContentType :: Maybe Text
- msTcDisplayPNGCharacteristics :: Maybe (NonEmpty DisplayPNGCharacteristicsDescriptor)
- msAttestationRootCertificates :: NonEmpty SignedCertificate
- msIcon :: Maybe ByteString
- msSupportedExtensions :: Maybe (NonEmpty ExtensionDescriptor)
- msAuthenticatorGetInfo :: Maybe AuthenticatorGetInfo
- data ProtocolVersion (p :: ProtocolKind) where
- data WebauthnAttestationType
Documentation
data MetadataStatement (p :: ProtocolKind) Source #
Constructors
Instances
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 |
Instances
Eq (ProtocolVersion p) Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types Methods (==) :: ProtocolVersion p -> ProtocolVersion p -> Bool # (/=) :: ProtocolVersion p -> ProtocolVersion p -> Bool # | |
Show (ProtocolVersion p) Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types Methods showsPrec :: Int -> ProtocolVersion p -> ShowS # show :: ProtocolVersion p -> String # showList :: [ProtocolVersion p] -> ShowS # | |
ToJSON (ProtocolVersion p) Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types Methods toJSON :: ProtocolVersion p -> Value # toEncoding :: ProtocolVersion p -> Encoding # toJSONList :: [ProtocolVersion p] -> Value # toEncodingList :: [ProtocolVersion p] -> Encoding # |
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
Constructors
WebauthnAttestationBasic | |
WebauthnAttestationAttCA |