Interface Cookie
public interface Cookie
Burp cookie able to retrieve and hold details about a cookie.
-
Method Summary
-
Method Details
-
name
String name()- Returns:
- The name of the cookie
-
value
String value()- Returns:
- The value of the cookie.
-
domain
String domain()Domain for which the cookie is in scope.
Note: For cookies that have been obtained from generated responses (by callingHttpResponse.httpResponse()and thenHttpResponse.cookies()), the domain will benullif the response did not explicitly set a domain attribute for the cookie.- Returns:
- The domain for which the cookie is in scope.
-
path
String path()Path for which the cookie is in scope.- Returns:
- The path for which the cookie is in scope or
nullif none is set.
-
expiration
Optional<ZonedDateTime> expiration()Expiration time for the cookie if available.- Returns:
- The expiration time for the cookie (i.e., for non-persistent session cookies).
-