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 :: *
- base64url :: (AsEmpty s1, AsEmpty s2, Cons s1 s1 Word8 Word8, Cons s2 s2 Word8 Word8) => Prism' s1 s2
Documentation
newtype Base64Integer Source #
A base64url encoded octet sequence interpreted as an integer.
The value is encoded in the minimum number of octets (no leading
zeros) with the exception of 0
which is encoded as AA
.
A leading zero when decoding is an error.
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.
Represents a general universal resource identifier using its component parts.
For example, for the URI
foo://anonymous@www.haskell.org:42/ghc?query#frag
the components are: