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

Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Description

This module handles the encoding of structures passed to the create() and get() methods while Registering a New Credential and Verifying an Authentication Assertion respectively.

Synopsis

Documentation

class Convert a => Encode a where Source #

Encode hs indicates that the Haskell-specific type hs can be encoded to the more generic JavaScript type IDL hs with the encode function.

Minimal complete definition

Nothing

Methods

encode :: a -> IDL a Source #

default encode :: Coercible a (IDL a) => a -> IDL a Source #

Instances

Instances details
Encode CoseSignAlg Source #

https://www.iana.org/assignments/cose/cose.xhtml#algorithms

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode AuthenticatorSelectionCriteria Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode CredentialDescriptor Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode CredentialUserEntity Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode CredentialRpEntity Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode AuthenticationExtensionsClientInputs Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode Timeout Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode Challenge Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode CredentialId Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode UserAccountName Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode UserAccountDisplayName Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode UserHandle Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode RelyingPartyName Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode RpId Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Methods

encode :: RpId -> IDL RpId Source #

Encode AttestationConveyancePreference Source #

https://www.w3.org/TR/webauthn-2/#enum-attestation-convey

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode UserVerificationRequirement Source #

https://www.w3.org/TR/webauthn-2/#enum-userVerificationRequirement

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode ResidentKeyRequirement Source #

https://www.w3.org/TR/webauthn-2/#enum-residentKeyRequirement

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode AuthenticatorAttachment Source #

https://www.w3.org/TR/webauthn-2/#enumdef-authenticatorattachment

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode CredentialType Source #

https://www.w3.org/TR/webauthn-2/#enum-credentialType

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode [CredentialDescriptor] Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode [CredentialParameters] Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode [AuthenticatorTransport] Source #

https://www.w3.org/TR/webauthn-2/#enumdef-authenticatortransport

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode hs => Encode (Maybe hs) Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Methods

encode :: Maybe hs -> IDL (Maybe hs) Source #

Encode (AttestationObject 'True) Source #

(spec)

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode (CredentialOptions 'Registration) Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode (CredentialOptions 'Authentication) Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode (Credential 'Registration 'True) Source #

(spec) Encodes the PublicKeyCredential for attestation, this instance is mostly used in the tests where we emulate the of the client.

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode (Credential 'Authentication 'True) Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode (AuthenticatorResponse 'Registration 'True) Source #

(spec)

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

Encode (AuthenticatorResponse 'Authentication 'True) Source # 
Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding

SingI c => Encode (CollectedClientData c 'True) Source #

(spec)

Instance details

Defined in Crypto.WebAuthn.Model.WebIDL.Internal.Encoding