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

io.higgs.http.server.auth.HiggsSessionFactory Maven / Gradle / Ivy

There is a newer version: 0.0.24
Show newest version
package io.higgs.http.server.auth;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.SessionContext;
import org.apache.shiro.session.mgt.SessionFactory;
import org.apache.shiro.session.mgt.SimpleSessionFactory;

/**
 * @author Courtney Robinson 
 */
public class HiggsSessionFactory extends SimpleSessionFactory implements SessionFactory {
    public Session createSession(SessionContext initData) {
        if (initData.getSessionId() != null) {
            return new HiggsSession(initData.getSessionId());
        }
        return super.createSession(initData);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy