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/instantiateSessionApp
Class per Trusted Applets.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SESSION_NO_FLAGS
static int
SESSION_SHARED
-
Method Summary
Methods Modifier and Type Method and Description SessionApp
createSession(java.lang.String trustedAppId)
create SessionApp instance for trustedAppIdSessionApp
createSession(TrustedApp app)
create SessionApp instance for TrustedAppstatic SessionManager
getInstance(Context ctx)
Retrieves static SessionManager instancevoid
onDestroy()
Clear all opened session in Firmware Should be invoke from Activity#onDestroy()
-
-
-
Field Detail
-
SESSION_NO_FLAGS
public static final int SESSION_NO_FLAGS
- See Also:
- Constant Field Values
-
SESSION_SHARED
public static final int SESSION_SHARED
- See Also:
- Constant Field Values
-
-
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()
-
-