Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hash-related types in the Share API.
Synopsis
- newtype HashJWT = HashJWT {}
- hashJWTHash :: HashJWT -> Hash32
- data HashJWTClaims = HashJWTClaims {}
- data DecodedHashJWT = DecodedHashJWT {}
- decodeHashJWT :: HashJWT -> DecodedHashJWT
- decodeHashJWTClaims :: HashJWT -> HashJWTClaims
- decodedHashJWTHash :: DecodedHashJWT -> Hash32
Hash types
hashJWTHash :: HashJWT -> Hash32 Source #
Grab the hash out of a hash JWT.
This decodes the whole JWT, then throws away the claims; use it if you really only need the hash!
data HashJWTClaims Source #
Instances
data DecodedHashJWT Source #
A decoded hash JWT that retains the original encoded JWT.
Instances
Show DecodedHashJWT Source # | |
Defined in Unison.Share.API.Hash showsPrec :: Int -> DecodedHashJWT -> ShowS # show :: DecodedHashJWT -> String # showList :: [DecodedHashJWT] -> ShowS # | |
Eq DecodedHashJWT Source # | |
Defined in Unison.Share.API.Hash (==) :: DecodedHashJWT -> DecodedHashJWT -> Bool # (/=) :: DecodedHashJWT -> DecodedHashJWT -> Bool # | |
Ord DecodedHashJWT Source # | |
Defined in Unison.Share.API.Hash compare :: DecodedHashJWT -> DecodedHashJWT -> Ordering # (<) :: DecodedHashJWT -> DecodedHashJWT -> Bool # (<=) :: DecodedHashJWT -> DecodedHashJWT -> Bool # (>) :: DecodedHashJWT -> DecodedHashJWT -> Bool # (>=) :: DecodedHashJWT -> DecodedHashJWT -> Bool # max :: DecodedHashJWT -> DecodedHashJWT -> DecodedHashJWT # min :: DecodedHashJWT -> DecodedHashJWT -> DecodedHashJWT # |
decodeHashJWT :: HashJWT -> DecodedHashJWT Source #
Decode a hash JWT.
decodeHashJWTClaims :: HashJWT -> HashJWTClaims Source #
Decode the claims out of a hash JWT.
decodedHashJWTHash :: DecodedHashJWT -> Hash32 Source #
Grab the hash out of a decoded hash JWT.