private static function populateSharedProtectedHeaders(JWEInterface &$jwe, array $data)
{
if (array_key_exists('protected', $data)) {
$jwe = $jwe->withEncodedSharedProtectedHeaders($data['protected']);
$jwe = $jwe->withSharedProtectedHeaders(json_decode(Base64Url::decode($data['protected']), true));
}
}