Class AuthenticationCookie

java.lang.Object
com.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.authentication.cookie.AuthenticationCookie
All Implemented Interfaces:
DBData, JcmsConstants, ImportConstants, MashupConstants, Storable, JaliosConstants, LangPropertyArgument, Serializable, Cloneable, Comparable<BasicStorable>

public class AuthenticationCookie extends Data implements DBData
POJO use to store authentication cookie that were emitted to end user.
Since:
JCMS-5813
See Also:
  • Constructor Details

    • AuthenticationCookie

      public AuthenticationCookie()
    • AuthenticationCookie

      public AuthenticationCookie(AuthenticationCookie other)
  • Method Details

    • getDigest

      public String getDigest()
      Retrieve the digest value that was sent in the Authentication cookie.
      Returns:
      a cookie digest
      See Also:
    • setDigest

      public void setDigest(String digest)
      Set the digest value that was sent in the Authentication cookie.
      Parameters:
      digest - the cookie digest
      See Also:
    • getExpirationDate

      public Date getExpirationDate()
      Retrieve the expiration date that was intially computed when the Authentication cookie was sent.

      This date is informative and is used for automatic purge of expired cookies.
      However it may not be completely accurate if any max age configuration is changed, either globally for site settings or for the Member (though its groups).

      Returns:
      the Date at which the cookie is considered expired, may return null
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Set the expiration date of this CookieAuthentication.
      Parameters:
      expirationDate - a Date after which this CookieAuthentication can be deleted/purged.