Package org.wildfly.security.http
Interface HttpServerCookie
-
public interface HttpServerCookieServer side representation of a HTTP Cookie.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDomain()Gets the domain name of this cookie.intgetMaxAge()Gets the maximum age in seconds of this Cookie.StringgetName()Returns the name of the cookie.StringgetPath()Returns the path on the server to which the browser returns this cookie.StringgetValue()Returns the current value of this cookie.intgetVersion()Returns the version of the protocol this cookie complies with.booleanisHttpOnly()Checks whether this cookie has been marked as HttpOnly.booleanisSecure()Returnstrueif the browser is sending cookies only over a secure protocol, orfalseif the browser can send cookies using any protocol.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the cookie.- Returns:
- the name of the cookie
-
getValue
String getValue()
Returns the current value of this cookie.- Returns:
- the current value of this cookie
-
getDomain
String getDomain()
Gets the domain name of this cookie.- Returns:
- the domain name of this cookie
-
getMaxAge
int getMaxAge()
Gets the maximum age in seconds of this Cookie.- Returns:
- an integer specifying the maximum age of the cookie in seconds
-
getPath
String getPath()
Returns the path on the server to which the browser returns this cookie.- Returns:
- a
Stringspecifying a path on the server
-
isSecure
boolean isSecure()
Returnstrueif the browser is sending cookies only over a secure protocol, orfalseif the browser can send cookies using any protocol.- Returns:
trueif the browser uses a secure protocol,falseotherwise
-
getVersion
int getVersion()
Returns the version of the protocol this cookie complies with.- Returns:
- the version of the protocol this cookie complies with.
-
isHttpOnly
boolean isHttpOnly()
Checks whether this cookie has been marked as HttpOnly.- Returns:
- true if this cookie has been marked as HttpOnly, false otherwise
-
-