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