SignatureElement

@Serializable
data class SignatureElement(source)

One signature entry of general JSON JWS serialization.

A SignatureElement contains the signature bytes plus the header fragments for that signature. The protected fragment is stored as encoded bytes in plainProtectedHeader, while the optional unprotected fragment is represented as JwsHeader.Part. The effective jwsHeader is reconstructed by merging both fragments.

Either header fragment may be partial. Only the combination of protected and unprotected parameters must constitute a valid JwsHeader.

See RFC 7515 Sec 7.2.1.

Properties

Link copied to clipboard
@Transient
val jwsHeader: JwsHeader
Link copied to clipboard
@SerialName(value = "protected")
val plainProtectedHeader: ByteArray?

The plainProtectedHeader member MUST be present ...when the JWS Protected Header value is non-empty; otherwise, it MUST be absent. These Header Parameter values are integrity protected.

Link copied to clipboard
@SerialName(value = "signature")
val plainSignature: ByteArray

The plainSignature member MUST be present

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "header")
val unprotectedHeader: JwsHeader.Part?

Functions

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