Interface PartitionKey


public interface PartitionKey
The site (scheme and domain) of the top-level URL where another embedded context sets a cookie.
Since:
7.40.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns whether the cookie is set in a third-party context.
    default String
    A scheme and domain of the top-level URL.
  • Method Details

    • site

      default String site()
      A scheme and domain of the top-level URL.
    • isThirdParty

      default boolean isThirdParty()
      Returns whether the cookie is set in a third-party context.

      For example, if http://b.com/ which is embedded in http://a.com/ sets a cookie then this cookie is third-party. But if the cookie is set in the same domain then it is the same-site cookie.