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

Crypto.Paseto.Token.Claim

Description

PASETO token claim.

Synopsis

Claim value types

newtype Issuer Source #

Issuer of a token.

Constructors

Issuer 

Fields

Instances

Instances details
FromJSON Issuer Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

ToJSON Issuer Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Show Issuer Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Eq Issuer Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Methods

(==) :: Issuer -> Issuer -> Bool #

(/=) :: Issuer -> Issuer -> Bool #

newtype Subject Source #

Subject of a token.

Constructors

Subject 

Fields

newtype Audience Source #

Recipient for which a token is intended.

Constructors

Audience 

Fields

newtype NotBefore Source #

Time from which a token should be considered valid.

Constructors

NotBefore 

Fields

newtype IssuedAt Source #

Time at which a token was issued.

Constructors

IssuedAt 

Fields

Claim key

data ClaimKey where Source #

Token claim key.

Instances

Instances details
Show ClaimKey Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Eq ClaimKey Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Ord ClaimKey Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

registeredClaimKeys :: Set ClaimKey Source #

Registered claims as defined by the PASETO specification.

Unregistered claim key

mkUnregisteredClaimKey :: Text -> Maybe UnregisteredClaimKey Source #

Construct an unregistered claim key.

If the provided Text key matches that of a registered claim (registeredClaimKeys), this function will return Nothing.

Claim

data Claim Source #

Token claim.

Instances

Instances details
Show Claim Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Methods

showsPrec :: Int -> Claim -> ShowS #

show :: Claim -> String #

showList :: [Claim] -> ShowS #

Eq Claim Source # 
Instance details

Defined in Crypto.Paseto.Token.Claim

Methods

(==) :: Claim -> Claim -> Bool #

(/=) :: Claim -> Claim -> Bool #

claimKey :: Claim -> ClaimKey Source #

Get the JSON object key which corresponds to a Claim.