paseto-0.1.1.1: Platform-Agnostic Security Tokens
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Paseto.Token.Build

Synopsis

Documentation

getDefaultBuildTokenParams :: IO BuildTokenParams Source #

Get parameters for building a PASETO token which includes the recommended default claims.

This includes the following default claims:

The default Footer and ImplicitAssertion is Nothing.

newtype V3LocalBuildError Source #

Error building a version 3 local PASETO token.

Constructors

V3LocalBuildEncryptionError EncryptionError

Encryption error.

newtype V3PublicBuildError Source #

Error building a version 3 public PASETO token.

Constructors

V3PublicBuildSigningError SigningError

Cryptographic signing error.

buildTokenV4Local :: BuildTokenParams -> SymmetricKey V4 -> IO (Token V4 Local) Source #

Build a version 4 local token.

buildTokenV4Public :: BuildTokenParams -> SigningKey V4 -> Token V4 Public Source #

Build a version 4 public token.