webauthn-0.6.0.1: Relying party (server) implementation of the WebAuthn 2 specification
Stabilityinternal
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.WebAuthn.Internal.Utils

Description

Internal utilities

Synopsis

Documentation

jsonEncodingOptions :: Options Source #

Custom Aeson Options for use in the library. We add a "lit" prefix to every field that would otherwise be a Haskell keyword.

enumJSONEncodingOptions :: String -> Options Source #

Custom JSON Encoding for enumerations, strips the given prefix and maps all constructors to lowercase.

failure :: e -> Validation (NonEmpty e) a Source #

A convenience function for creating a Validation failure of a single NonEmpty value

certificateSubjectKeyIdentifier :: Certificate -> SubjectKeyIdentifier Source #

(spec) Computes the SubjectKeyIdentifier from a Certificate according to method 1 in the above specification. Note that this function only fails if the ASN1Object instance of PubKey has a bug