commonProtectedHeader property
JoseHeader
commonProtectedHeader
The JOSE header parameters that are integrity protected
In case of multiple recipients, this header is composed of the shared protected header parameters and the per-recipient protected header parameters that are common. In case of a single recipient, this contains all protected header parameters.
Implementation
JoseHeader get commonProtectedHeader {
var sharedHeader = sharedProtectedHeader?.toJson();
return JoseHeader.fromJson(commonUnion(recipients.map((r) => safeUnion([
sharedHeader,
r.protectedHeader?.toJson(),
]))));
}