Package burp.api.montoya.http.sessions
Interface CookieJar
-
public interface CookieJarThis interface is used to access Burp's Cookie Jar functionality.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Cookie>cookies()voidsetCookie(java.lang.String name, java.lang.String value, java.lang.String path, java.lang.String domain, java.time.ZonedDateTime expiration)This method is used to add a new HTTP cookie to the Cookie Jar.
-
-
-
Method Detail
-
setCookie
void setCookie(java.lang.String name, java.lang.String value, java.lang.String path, java.lang.String domain, java.time.ZonedDateTime expiration)This method is used to add a new HTTP cookie to the Cookie Jar.- Parameters:
name- The name of the cookie.value- The value of the cookie.path- The path for which the cookie is in scope ornullif none is set.domain- The domain for which the cookie is in scope.expiration- The expiration time for the cookie, ornullif none is set (i.e., for non-persistent session cookies).
-
cookies
java.util.List<Cookie> cookies()
- Returns:
- A list of stored cookies.
-
-