kz.greetgo.security.session.SessionRow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.security Show documentation
Show all versions of greetgo.security Show documentation
Security infrastructure used in greetgo!
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);
}
}