Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
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 #
Instances
data ProtocolVersion (p :: ProtocolKind) where Source #
FIDO protocol versions, parametrized by the protocol family
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 (==) :: ProtocolVersion p -> ProtocolVersion p -> Bool # (/=) :: ProtocolVersion p -> ProtocolVersion p -> Bool # | |
Show (ProtocolVersion p) Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types showsPrec :: Int -> ProtocolVersion p -> ShowS # show :: ProtocolVersion p -> String # showList :: [ProtocolVersion p] -> ShowS # | |
ToJSON (ProtocolVersion p) Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types 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
Instances
Eq WebauthnAttestationType Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types | |
Show WebauthnAttestationType Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types showsPrec :: Int -> WebauthnAttestationType -> ShowS # show :: WebauthnAttestationType -> String # showList :: [WebauthnAttestationType] -> ShowS # | |
Generic WebauthnAttestationType Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types type Rep WebauthnAttestationType :: Type -> Type # | |
ToJSON WebauthnAttestationType Source # | |
Defined in Crypto.WebAuthn.Metadata.Statement.Types | |
type Rep WebauthnAttestationType Source # | |
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)) |