JwsHeader

@Serializable
data class JwsHeader(val algorithm: JwsAlgorithm, val keyId: String? = null, val type: String? = null, val contentType: String? = null, val certificateChain: Array<ByteArray>? = null, val notBefore: Instant? = null, val issuedAt: Instant? = null, val expiration: Instant? = null, val jsonWebKey: JsonWebKey? = null)

Header of a JwsSigned.

Constructors

Link copied to clipboard
constructor(algorithm: JwsAlgorithm, keyId: String? = null, type: String? = null, contentType: String? = null, certificateChain: Array<ByteArray>? = null, notBefore: Instant? = null, issuedAt: Instant? = null, expiration: Instant? = null, jsonWebKey: JsonWebKey? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "alg")
val algorithm: JwsAlgorithm
Link copied to clipboard
@SerialName(value = "x5c")
val certificateChain: Array<ByteArray>? = null
Link copied to clipboard
@SerialName(value = "cty")
val contentType: String? = null
Link copied to clipboard
@SerialName(value = "exp")
@Serializable(with = InstantLongSerializer::class)
val expiration: Instant? = null
Link copied to clipboard
@SerialName(value = "iat")
@Serializable(with = InstantLongSerializer::class)
val issuedAt: Instant? = null
Link copied to clipboard
@SerialName(value = "jwk")
val jsonWebKey: JsonWebKey? = null
Link copied to clipboard
@SerialName(value = "kid")
val keyId: String? = null
Link copied to clipboard
@SerialName(value = "nbf")
@Serializable(with = InstantLongSerializer::class)
val notBefore: Instant? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "typ")
val type: String? = null

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard