Class Session

Definition

Namespace:
Tizen.Security.TEEC
Assembly:
Tizen.Security.TEEC.dll
API Level:
3

This type denotes a TEE Session, the logical container linking a client application with a particular trusted application.

C#
Copy
public sealed class Session : IDisposable
Inheritance
Session

Methods

View Source

Close()

This function closes a session which has been opened with a trusted application. All commands within the session must be completed before this function can be called.

Declaration
C#
Copy
public void Close()
API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
Feature: http://tizen.org/feature/security.tee
View Source

Dispose()

Disposable interface implememtation.

Declaration
C#
Copy
public void Dispose()
View Source

Finalize()

Destructor of the class.

Declaration
C#
Copy
protected void Finalize()
View Source

InvokeCommand(UInt32, Parameter[])

This function invokes a command within the specified session. The parameter commandID is an identifier that is used to indicate which of the exposed trusted application functions should be invoked. The supported command identifier values are defined by the trusted application's protocol. There can be up to four parameter objects given in the paramlist array.

Declaration
C#
Copy
public void InvokeCommand(uint commandID, Parameter[] paramlist)
Parameters
Type Name Description
UInt32 commandID

The command.

Parameter[] paramlist

The array of parameters.

API Level: 3
Privilege Level: partner
Privilege: http://tizen.org/privilege/tee.client
Feature: http://tizen.org/feature/security.tee
View Source

InvokeCommandAsync(UInt32, Parameter[], CancellationToken)

The asynchronous version of the InvokeCommand.

Declaration
C#
Copy
public Task InvokeCommandAsync(uint commandID, Parameter[] paramlist, CancellationToken token = null)
Parameters
Type Name Description
UInt32 commandID

The command.

Parameter[] paramlist

The array of parameters.

CancellationToken token

The token for task manipulation.

Returns
Type Description
Task

Returns a task executing an invoke command in the background.

API Level: 3

Extension Methods