public GqClientSessionImpl(IClientAuthSessionData sessionData, ISessionFactory sf, ClientAuthSessionListener lst, IAuthMessageFactory fct, StateChangeListener<AppSession> scListener, IClientAuthActionContext context, boolean stateless) { super(sf, sessionData); if (lst == null) { throw new IllegalArgumentException("Listener can not be null"); } if (fct.getApplicationId() == null) { throw new IllegalArgumentException("ApplicationId can not be null"); } super.appId = fct.getApplicationId(); this.listener = lst; this.factory = fct; this.context = context; this.sessionData = sessionData; this.sessionData.setStateless(stateless); super.addStateChangeNotification(scListener); }
public ClientAuthSessionImpl(IClientAuthSessionData sessionData, ISessionFactory sf, ClientAuthSessionListener lst, IAuthMessageFactory fct, StateChangeListener<AppSession> scListener, IClientAuthActionContext context, boolean stateless) { super(sf, sessionData); if (lst == null) { throw new IllegalArgumentException("Listener can not be null"); } if (fct.getApplicationId() == null) { throw new IllegalArgumentException("ApplicationId can not be null"); } super.appId = fct.getApplicationId(); this.listener = lst; this.factory = fct; this.context = context; this.sessionData = sessionData; this.sessionData.setStateless(stateless); super.addStateChangeNotification(scListener); }
public ServerAuthSessionImpl(IServerAuthSessionData sessionData, ISessionFactory sf, ServerAuthSessionListener lst, IAuthMessageFactory fct, StateChangeListener<AppSession> scListener, IServerAuthActionContext context, long tsTimeout, boolean stateless) { super(sf, sessionData); super.appId = fct.getApplicationId(); this.listener = lst; this.factory = fct; this.context = context; this.sessionData = sessionData; this.sessionData.setStateless(stateless); this.sessionData.setTsTimeout(tsTimeout); super.addStateChangeNotification(scListener); }
public GqServerSessionImpl(IServerAuthSessionData sessionData, ISessionFactory sf, ServerAuthSessionListener lst, IAuthMessageFactory fct, StateChangeListener<AppSession> scListener, IServerAuthActionContext context, long tsTimeout, boolean stateless) { super(sf, sessionData); super.appId = fct.getApplicationId(); this.listener = lst; this.factory = fct; this.context = context; this.sessionData = sessionData; this.sessionData.setStateless(stateless); this.sessionData.setTsTimeout(tsTimeout); super.addStateChangeNotification(scListener); }