A CookieStore is an interface that represents a storage area for cookies.CookieManager adds the cookies to the CookieStore for every…