Intel

Developer Zone

SessionManager

com.intel.security.dalinterface

Class SessionManager

  • java.lang.Object
    • com.intel.security.dalinterface.SessionManager


  • public final class SessionManager
    extends java.lang.Object
    SessionManager is utilized to create/instantiate SessionApp Class per Trusted Applets.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      SessionApp createSession(java.lang.String trustedAppId)
      create SessionApp instance for trustedAppId
      SessionApp createSession(TrustedApp app)
      create SessionApp instance for TrustedApp
      static SessionManager getInstance(Context ctx)
      Retrieves static SessionManager instance
      void onDestroy()
      Clear all opened session in Firmware Should be invoke from Activity#onDestroy()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static final SessionManager getInstance(Context ctx)
        Retrieves static SessionManager instance
        Parameters:
        ctx - - Activity Context
        Returns:
        SessionManager instance or null
      • createSession

        public final SessionApp createSession(TrustedApp app)
                                       throws java.lang.IllegalArgumentException
        create SessionApp instance for TrustedApp
        Parameters:
        app - - TrustedApp implementation instance
        Returns:
        code, defined in DalConstants Class
        Throws:
        java.lang.IllegalArgumentException
      • createSession

        public final SessionApp createSession(java.lang.String trustedAppId)
        create SessionApp instance for trustedAppId
        Parameters:
        trustedAppId - - String, containing AppId
        Returns:
        code, defined in DalConstants Class
        Throws:
        java.lang.IllegalArgumentException
      • onDestroy

        public final void onDestroy()
        Clear all opened session in Firmware Should be invoke from Activity#onDestroy()