Package io.fusionauth.http
Class Cookie
java.lang.Object
io.fusionauth.http.Cookie
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, String value) booleanfromRequestHeader(String header) Parses cookies from a request header (cookie).static CookiefromResponseHeader(String header) Parses a cookie from a response header (set-cookie).getName()getPath()getValue()inthashCode()booleanbooleanisSecure()voidvoidsetExpires(ZonedDateTime expires) voidsetHttpOnly(boolean httpOnly) voidvoidvoidvoidsetSameSite(Cookie.SameSite sameSite) voidsetSecure(boolean secure) void
-
Field Details
-
domain
-
expires
-
httpOnly
public boolean httpOnly -
maxAge
-
name
-
path
-
sameSite
-
secure
public boolean secure -
value
-
-
Constructor Details
-
Cookie
public Cookie() -
Cookie
-
Cookie
-
-
Method Details
-
fromRequestHeader
Parses cookies from a request header (cookie).- Parameters:
header- The header value.- Returns:
- The list of cookies.
-
fromResponseHeader
Parses a cookie from a response header (set-cookie).- Parameters:
header- The header value.- Returns:
- The Cookie.
-
addAttribute
-
equals
-
getDomain
-
setDomain
-
getExpires
-
setExpires
-
getMaxAge
-
setMaxAge
-
getName
-
setName
-
getPath
-
setPath
-
getSameSite
-
setSameSite
-
getValue
-
setValue
-
hashCode
public int hashCode() -
isHttpOnly
public boolean isHttpOnly() -
setHttpOnly
public void setHttpOnly(boolean httpOnly) -
isSecure
public boolean isSecure() -
setSecure
public void setSecure(boolean secure) -
toRequestHeader
-
toResponseHeader
-