Class Cookie
- java.lang.Object
-
- com.ibm.security.access.extension.authn.message.Cookie
-
public class Cookie extends java.lang.ObjectThis class represent a cookie in authentication request and response.
-
-
Constructor Summary
Constructors Constructor Description Cookie(java.lang.String name)Create a cookie with the specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()Get the comment.java.lang.StringgetDomain()Get the domain.intgetMaxAge()Get the maximum age (in seconds).java.lang.StringgetName()Get the name.java.lang.StringgetPath()Get the path.java.lang.StringgetValue()Get the value.intgetVersion()Get the version.booleanisHttpOnly()Get the HttpOnly flag.booleanisSecure()Check the secure flag.voidsetComment(java.lang.String comment)Set the comment.voidsetDomain(java.lang.String domain)Set the domain.voidsetHttpOnly(boolean httpOnly)Set the HttpOnly flag.voidsetMaxAge(int maxAge)Set the maximum age (in seconds).voidsetPath(java.lang.String path)Set the path.voidsetSecure(boolean secure)Set the secure flag.voidsetValue(java.lang.String value)Set the value.voidsetVersion(int version)Set the version.
-
-
-
Method Detail
-
getComment
public java.lang.String getComment()
Get the comment.- Returns:
- The comment.
-
setComment
public void setComment(java.lang.String comment)
Set the comment.- Parameters:
comment- The comment.
-
getDomain
public java.lang.String getDomain()
Get the domain.- Returns:
- The domain.
-
setDomain
public void setDomain(java.lang.String domain)
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
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
getPath
public java.lang.String getPath()
Get the path.- Returns:
- The path.
-
setPath
public void setPath(java.lang.String path)
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
public java.lang.String getValue()
Get the value.- Returns:
- The value.
-
setValue
public void setValue(java.lang.String value)
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.
-
-