Class Cookie


  • public class Cookie
    extends java.lang.Object
    This 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.String getComment()
      Get the comment.
      java.lang.String getDomain()
      Get the domain.
      int getMaxAge()
      Get the maximum age (in seconds).
      java.lang.String getName()
      Get the name.
      java.lang.String getPath()
      Get the path.
      java.lang.String getValue()
      Get the value.
      int getVersion()
      Get the version.
      boolean isHttpOnly()
      Get the HttpOnly flag.
      boolean isSecure()
      Check the secure flag.
      void setComment​(java.lang.String comment)
      Set the comment.
      void setDomain​(java.lang.String domain)
      Set the domain.
      void setHttpOnly​(boolean httpOnly)
      Set the HttpOnly flag.
      void setMaxAge​(int maxAge)
      Set the maximum age (in seconds).
      void setPath​(java.lang.String path)
      Set the path.
      void setSecure​(boolean secure)
      Set the secure flag.
      void setValue​(java.lang.String value)
      Set the value.
      void setVersion​(int version)
      Set the version.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cookie

        public Cookie​(java.lang.String name)
        Create a cookie with the specified name.
        Parameters:
        name - The name.
    • 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.