fromParts
fun fromParts(protectedHeader: JwsHeader.Part? = null, unprotectedHeader: JwsHeader.Part? = null): JwsHeader(source)
Merges protected and unprotected header fragments into the effective JwsHeader.
Either fragment may be partial, but their combined content must form a valid header.
fun fromParts(protectedHeader: ByteArray? = null, unprotectedHeader: JwsHeader.Part? = null): JwsHeader(source)
Decodes the protected fragment and merges it with the optional unprotected fragment.
This is the form used when reading serialized JWS values such as JwsCompact or JwsFlattened.