Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This module implements the Apple Anonymous Attestation Statement Format. Note that this attestation statement format is currently not registered in the WebAuthn Attestation Statement Format Identifiers IANA registry.
Synopsis
Documentation
format :: SomeAttestationStatementFormat Source #
Helper function that wraps the Apple format into the general SomeAttestationStatementFormat type.
The Apple format. The sole purpose of this type is to instantiate the AttestationStatementFormat typeclass below.
Instances
Show Format Source # | |
AttestationStatementFormat Format Source # | |
Defined in Crypto.WebAuthn.AttestationStatementFormat.Apple asfIdentifier :: Format -> Text Source # asfVerify :: Format -> DateTime -> AttStmt Format -> AuthenticatorData 'Registration 'True -> ClientDataHash -> Validation (NonEmpty (AttStmtVerificationError Format)) SomeAttestationType Source # asfTrustAnchors :: Format -> VerifiableAttestationType -> CertificateStore Source # asfDecode :: Format -> HashMap Text Term -> Either Text (AttStmt Format) Source # | |
type AttStmt Format Source # | |
type AttStmtVerificationError Format Source # | |
data VerificationError Source #
Verification errors specific to Apple attestation
NonceMismatch (Digest SHA256) (Digest SHA256) | The nonce found in the certificate extension does not match the expected nonce (first: expected, second: received) |
PublickeyMismatch PublicKey PublicKey | The public Key found in the certificate does not match the credential's public key. (first: credential, second: certificate) |
Instances
Show VerificationError Source # | |
Defined in Crypto.WebAuthn.AttestationStatementFormat.Apple showsPrec :: Int -> VerificationError -> ShowS # show :: VerificationError -> String # showList :: [VerificationError] -> ShowS # | |
Exception VerificationError Source # | |