Class SmartcardChannel

Definition

Namespace:
Tizen.Network.Smartcard
Assembly:
Tizen.Network.Smartcard.dll
API Level:
3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/secureelement

The class for Smartcard channel information. It allows applications to handle the channel information.

C#
Copy
public class SmartcardChannel : IDisposable
Inheritance
System.Object
SmartcardChannel
Implements
System.IDisposable

Properties

View Source

IsBasicChannel

Whether the kind of channel is basic.

Declaration
C#
Copy
public bool IsBasicChannel { get; }
Property Value
Type Description
Boolean
API Level: 3
View Source

IsClosed

Whether the channel is closed.

Declaration
C#
Copy
public bool IsClosed { get; }
Property Value
Type Description
Boolean
API Level: 3
View Source

IsLogicalChannel

Whether the kind of channel is logical.

Declaration
C#
Copy
public bool IsLogicalChannel { get; }
Property Value
Type Description
Boolean
API Level: 3
View Source

Session

The session that has opened the given channel.

Declaration
C#
Copy
public SmartcardSession Session { get; }
Property Value
Type Description
SmartcardSession
API Level: 3

Methods

View Source

Close()

Closes the given channel to the Secure Element.

Declaration
C#
Copy
public void Close()
Exceptions
Type Condition
System.NotSupportedException

Thrown when the Smartcard is not supported.

System.InvalidOperationException

Thrown when the method failed due to an invalid operation.

API Level: 3
View Source

Dispose()

Dispose

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Finalize()

SmartcardChannel destructor.

Declaration
C#
Copy
protected void Finalize()
View Source

GetSelectedResponse()

Gets the response to the select command.

Declaration
C#
Copy
public byte[] GetSelectedResponse()
Returns
Type Description
System.Byte[]

Byte array to retrieve the select response.

API Level: 3
View Source

GetTransmittedResponse()

Helper function to retrieve the response APDU of the previous transmit() call.

Declaration
C#
Copy
public byte[] GetTransmittedResponse()
Returns
Type Description
System.Byte[]

Byte array for the response APDU plus status words.

API Level: 3
View Source

SelectNext()

Performs a selection of the next applet on the given channel that matches to the partial application ID (AID).

Declaration
C#
Copy
public bool SelectNext()
Returns
Type Description
Boolean

True or false depending whether another applet with the partial application ID (AID).

API Level: 3
View Source

Transmit(Byte[])

Transmits the APDU command (as per ISO/IEC 7816-4) to the secure element.

Declaration
C#
Copy
public byte[] Transmit(byte[] cmd)
Parameters
Type Name Description
System.Byte[] cmd

Command APDU to be sent to the secure element.

Returns
Type Description
System.Byte[]

Byte array for the response APDU plus status words.

API Level: 3

Implements

System.IDisposable