Class ApplicationSessionFactory
java.lang.Object
com.janeirodigital.sai.core.application.ApplicationSessionFactory
Factory for creation of authorized
ApplicationSession instances-
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationSessionget(Application application, com.janeirodigital.sai.authentication.AuthorizedSession authorizedSession) Gets anApplicationSessioninstance for the providedApplicationscoped to the providedAuthorizedSession.
-
Method Details
-
get
public static ApplicationSession get(Application application, com.janeirodigital.sai.authentication.AuthorizedSession authorizedSession) Gets anApplicationSessioninstance for the providedApplicationscoped to the providedAuthorizedSession. Will also initialize a similarly scopedSaiSession.- Parameters:
application-Applicationto initialize the session forauthorizedSession- EstablishedAuthorizedSessionfor access to protected resources- Returns:
ApplicationSession
-