Safe Haskell | None |
---|---|
Language | Haskell98 |
Data types for the JOSE library.
- newtype Base64Integer = Base64Integer Integer
- _Base64Integer :: Iso' Base64Integer Integer
- data SizedBase64Integer = SizedBase64Integer Int Integer
- genSizedBase64IntegerOf :: Int -> Gen SizedBase64Integer
- checkSize :: Int -> SizedBase64Integer -> Parser SizedBase64Integer
- newtype Base64Octets = Base64Octets ByteString
- newtype Base64SHA1 = Base64SHA1 ByteString
- newtype Base64SHA256 = Base64SHA256 ByteString
- newtype Base64X509 = Base64X509 SignedCertificate
- data URI :: *
Documentation
newtype Base64Integer Source #
A base64url encoded octet sequence interpreted as an integer.
data SizedBase64Integer Source #
A base64url encoded octet sequence interpreted as an integer and where the number of octets carries explicit bit-length information.
genSizedBase64IntegerOf :: Int -> Gen SizedBase64Integer Source #
Generate a SizedBase64Integer
of the given number of bytes
checkSize :: Int -> SizedBase64Integer -> Parser SizedBase64Integer Source #
Parsed a SizedBase64Integer
with an expected number of bytes.
newtype Base64Octets Source #
A base64url encoded octet sequence. Used for payloads, signatures, symmetric keys, salts, initialisation vectors, etc.
newtype Base64SHA1 Source #
A base64url encoded SHA-1 digest. Used for X.509 certificate thumbprints.
newtype Base64SHA256 Source #
A base64url encoded SHA-256 digest. Used for X.509 certificate thumbprints.
newtype Base64X509 Source #
A base64 encoded X.509 certificate.