Skip to content

indispensable-josef indispensable-josef

Maven Central

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 targets the JVM, Android and iOS.

Simply declare the desired dependency to get going:

implementation("at.asitplus.signum:indispensable-josef:$version")