Nexus set cookie, age, same site, http only

Need help on changing this nexus jetty-https.xml file to this following specifications.

  1. Set settings on this specific cookie

e.g.: Set-Cookie: < cookie-name >=< cookie-value >; secure; HttpOnly; SameSite= ‘Lax’ or ‘Strict’

  1. Set settings on this specific cookie with age.

e.g.: Set-Cookie: < cookie-name >=< cookie-value >; secure; HttpOnly; max-age=9999; SameSite= ‘Lax’ or ‘Strict’.