com.walletconnect.foundation.util.jwt.JwtHeader.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foundation Show documentation
Show all versions of foundation Show documentation
Foundation SDK for WalletConnect
@file:JvmSynthetic
package com.walletconnect.foundation.util.jwt
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class JwtHeader(
@Json(name = "alg")
val algorithm: String,
@Json(name = "typ")
val type: String,
) {
@Json(ignore = true)
val encoded = encodeJSON(this) // encode on init to not encode every time jwt is generated
companion object {
val EdDSA = JwtHeader("EdDSA", "JWT")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy