burp.impl.Cookie Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of burp-suite-utils Show documentation
Show all versions of burp-suite-utils Show documentation
The Burp Suite Utils project provides developers with APIs for building Burp Suite Extensions.
package burp.impl;
import burp.ICookie;
import java.util.Date;
/**
*
* @author August Detlefsen [augustd at codemagi dot com]
*/
public class Cookie implements ICookie {
String name;
String value;
String domain;
String path;
Date expiration;
public Cookie(String name, String value) {
this.name = name;
this.value = value;
}
public Cookie(ICookie cookie) {
this.name = cookie.getName();
this.value = cookie.getValue();
this.domain = cookie.getDomain();
this.path = cookie.getPath();
this.expiration = cookie.getExpiration();
}
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
@Override
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
@Override
public Date getExpiration() {
return expiration;
}
public void setExpiration(Date expiration) {
this.expiration = expiration;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy