/javase/11/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a>&nbsp;expiry,
 boolean&nbsp;secure,
 boolean&nbsp;httpOnly,
 <a href="NewCookie.SameSite.html" title="enum in jakarta.ws.rs.core">NewCookie.SameSite</a>&nbsp;sameSite)</code></div>
<div class="col-last even-row-color">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">This constructor will be removed in a future version.</div>
</div>
</d