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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the comment.Get the domain.intGet the maximum age (in seconds).getName()Get the name.getPath()Get the path.getValue()Get the value.intGet the version.booleanGet the HttpOnly flag.booleanisSecure()Check the secure flag.voidsetComment(String comment) Set the comment.voidSet the domain.voidsetHttpOnly(boolean httpOnly) Set the HttpOnly flag.voidsetMaxAge(int maxAge) Set the maximum age (in seconds).voidSet the path.voidsetSecure(boolean secure) Set the secure flag.voidSet the value.voidsetVersion(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.
-