Class Cookie
java.lang.Object
com.ibm.security.access.extension.authn.message.Cookie
This class represent a cookie in authentication request and response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the comment.Get the domain.int
Get the maximum age (in seconds).getName()
Get the name.getPath()
Get the path.getValue()
Get the value.int
Get the version.boolean
Get the HttpOnly flag.boolean
isSecure()
Check the secure flag.void
setComment
(String comment) Set the comment.void
Set the domain.void
setHttpOnly
(boolean httpOnly) Set the HttpOnly flag.void
setMaxAge
(int maxAge) Set the maximum age (in seconds).void
Set the path.void
setSecure
(boolean secure) Set the secure flag.void
Set the value.void
setVersion
(int version) Set the version.
-
Constructor Details
-
Cookie
Create a cookie with the specified name.- Parameters:
name
- The name.
-
-
Method Details
-
getComment
Get the comment.- Returns:
- The comment.
-
setComment
Set the comment.- Parameters:
comment
- The comment.
-
getDomain
Get the domain.- Returns:
- The domain.
-
setDomain
Set the domain.- Parameters:
domain
- The domain.
-
isHttpOnly
public boolean isHttpOnly()Get the HttpOnly flag.- Returns:
- The HttpOnly flag.
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) Set the HttpOnly flag.- Parameters:
httpOnly
- The HttpOnly flag.
-
getMaxAge
public int getMaxAge()Get the maximum age (in seconds).- Returns:
- The maximum age.
-
setMaxAge
public void setMaxAge(int maxAge) Set the maximum age (in seconds).- Parameters:
maxAge
- The maximum age.
-
getName
Get the name.- Returns:
- The name.
-
getPath
Get the path.- Returns:
- The path.
-
setPath
Set the path.- Parameters:
path
- The path.
-
isSecure
public boolean isSecure()Check the secure flag.- Returns:
- The secure flag.
-
setSecure
public void setSecure(boolean secure) Set the secure flag.- Parameters:
secure
- The secure flag.
-
getValue
Get the value.- Returns:
- The value.
-
setValue
Set the value.- Parameters:
value
- The value.
-
getVersion
public int getVersion()Get the version.- Returns:
- The version.
-
setVersion
public void setVersion(int version) Set the version.- Parameters:
version
- The version.
-