| Stability | internal |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.WebAuthn.Model.WebIDL.Internal.Decoding
Description
This module handles the decoding of structures returned by the create() and get() methods while Registering a New Credential and Verifying an Authentication Assertion respectively.
Synopsis
- class Convert a => Decode a where
- class Convert a => DecodeCreated a where
- decodeCreated :: SupportedAttestationStatementFormats -> IDL a -> Either Text a
Documentation
class Convert a => Decode a where Source #
indicates that the Haskell-specific type Decode aa can be
decoded from the more generic JavaScript type with the IDL adecode function.
Minimal complete definition
Nothing
Methods
Instances
class Convert a => DecodeCreated a where Source #
Like Decode, but with a decodeCreated function that also takes a
SupportedAttestationStatementFormats in order to allow decoding to depend
on the supported attestation formats.
Methods
decodeCreated :: SupportedAttestationStatementFormats -> IDL a -> Either Text a Source #
Instances
| DecodeCreated (AttestationObject 'True) Source # | |
Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Decoding Methods decodeCreated :: SupportedAttestationStatementFormats -> IDL (AttestationObject 'True) -> Either Text (AttestationObject 'True) Source # | |
| DecodeCreated (Credential 'Registration 'True) Source # | |
Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Decoding Methods decodeCreated :: SupportedAttestationStatementFormats -> IDL (Credential 'Registration 'True) -> Either Text (Credential 'Registration 'True) Source # | |
| DecodeCreated (AuthenticatorResponse 'Registration 'True) Source # | |
Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Decoding Methods decodeCreated :: SupportedAttestationStatementFormats -> IDL (AuthenticatorResponse 'Registration 'True) -> Either Text (AuthenticatorResponse 'Registration 'True) Source # | |