Class SmartcardChannel

Definition

Namespace:
Tizen.Network.Smartcard
Assembly:
Tizen.Network.Smartcard.dll

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

C#
Copy
public class SmartcardChannel : IDisposable
Inheritance
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
bool
View Source

IsClosed

Whether the channel is closed.

Declaration
C#
Copy
public bool IsClosed { get; }
Property Value
Type Description
bool
View Source

IsLogicalChannel

Whether the kind of channel is logical.

Declaration
C#
Copy
public bool IsLogicalChannel { get; }
Property Value
Type Description
bool
View Source

Session

The session that has opened the given channel.

Declaration
C#
Copy
public SmartcardSession Session { get; }
Property Value
Type Description
SmartcardSession

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.

View Source

Dispose()

Dispose

Declaration
C#
Copy
public void Dispose()
View Source

~SmartcardChannel()

SmartcardChannel destructor.

Declaration
C#
Copy
protected ~SmartcardChannel()
View Source

GetSelectedResponse()

Gets the response to the select command.

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

Byte array to retrieve the select response.

View Source

GetTransmittedResponse()

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

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

Byte array for the response APDU plus status words.

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
bool

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

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
byte[] cmd

Command APDU to be sent to the secure element.

Returns
Type Description
byte[]

Byte array for the response APDU plus status words.

Implements

System.IDisposable