java.lang.Object
com.ibm.security.access.extension.authn.message.Cookie

public class Cookie extends Object
This class represent a cookie in authentication request and response.
  • Constructor Details

    • Cookie

      public Cookie(String name)
      Create a cookie with the specified name.
      Parameters:
      name - The name.
  • Method Details

    • getComment

      public String getComment()
      Get the comment.
      Returns:
      The comment.
    • setComment

      public void setComment(String comment)
      Set the comment.
      Parameters:
      comment - The comment.
    • getDomain

      public String getDomain()
      Get the domain.
      Returns:
      The domain.
    • setDomain

      public void setDomain(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 String getName()
      Get the name.
      Returns:
      The name.
    • getPath

      public String getPath()
      Get the path.
      Returns:
      The path.
    • setPath

      public void setPath(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 String getValue()
      Get the value.
      Returns:
      The value.
    • setValue

      public void setValue(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.