All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kz.greetgo.security.session.SessionRow Maven / Gradle / Ivy

There is a newer version: 0.0.12
Show newest version
package kz.greetgo.security.session;

import java.util.Date;

public class SessionRow {
  public final String token;
  public final Object sessionData;
  public final Date insertedAt;
  public final Date lastTouchedAt;

  public SessionRow(String token, Object sessionData, Date insertedAt, Date lastTouchedAt) {
    this.token = token;
    this.sessionData = sessionData;
    this.insertedAt = insertedAt;
    this.lastTouchedAt = lastTouchedAt;
  }

  public SessionServiceImpl.SessionCache toCacheRecord() {
    return new SessionServiceImpl.SessionCache(sessionData, token, lastTouchedAt);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy