Class ApplicationSessionFactory

java.lang.Object
com.janeirodigital.sai.core.application.ApplicationSessionFactory

public class ApplicationSessionFactory extends Object
Factory for creation of authorized ApplicationSession instances
  • Method Details

    • get

      public static ApplicationSession get(Application application, com.janeirodigital.sai.authentication.AuthorizedSession authorizedSession)
      Gets an ApplicationSession instance for the provided Application scoped to the provided AuthorizedSession. Will also initialize a similarly scoped SaiSession.
      Parameters:
      application - Application to initialize the session for
      authorizedSession - Established AuthorizedSession for access to protected resources
      Returns:
      ApplicationSession