Indispensable JOSE Data Structures
This Kotlin Multiplatform library provides platform-independent JOSE data
types and utility functions. It comes with predefined JOSE algorithm identifiers and guaranteed correct
serialization, leveraging kotlinx.serialization.
There's really not much more to it; it's data structures with self-describing names that interop with
Indispensable data classes such as SignatureAlgorithm
, CryptoSignature
, and CryptoPublicKey
.
Classes like JsonWebToken
come with serialize()
and deserialize()
functions, since their encoded representation is not a valid JSON string.
The preconfigured serializer ensuring compliant serialization of all JOSE-related data structures is called joseCompliantSerializer
.
Tip
Do check out the full API docs here to get an overview about all JOSE-specific data types included!
Using it in your Projects
This library was built for Kotlin Multiplatform. Currently, it supports all KMP targets except watchosDeviceArm64
.
Simply declare the desired dependency to get going: