io.higgs.http.server.auth.HiggsSession Maven / Gradle / Ivy
package io.higgs.http.server.auth;
import org.apache.shiro.session.ExpiredSessionException;
import org.apache.shiro.session.InvalidSessionException;
import org.apache.shiro.session.StoppedSessionException;
import org.apache.shiro.session.mgt.DefaultSessionManager;
import org.apache.shiro.session.mgt.ValidatingSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.text.DateFormat;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* @author Courtney Robinson
*/
public class HiggsSession implements ValidatingSession, Serializable {
protected static final transient Logger log = LoggerFactory.getLogger(HiggsSession.class);
protected static final long MILLIS_PER_SECOND = 1000;
protected static final long MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND;
protected final Date startTimestamp;
protected Serializable id;
protected Date stopTimestamp;
protected Date lastAccessTime;
protected long timeout;
protected boolean expired;
protected String host;
protected Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy