Class SmartcardChannel
Definition
- Assembly:
- Tizen.Network.Smartcard.dll
The class for Smartcard channel information. It allows applications to handle the channel information.
public class SmartcardChannel : IDisposable
- Inheritance
-
objectSmartcardChannel
- Implements
-
System.IDisposable
Properties
View SourceIsBasicChannel
Whether the kind of channel is basic.
Declaration
public bool IsBasicChannel { get; }
Property Value
Type | Description |
---|---|
bool |
IsClosed
Whether the channel is closed.
Declaration
public bool IsClosed { get; }
Property Value
Type | Description |
---|---|
bool |
IsLogicalChannel
Whether the kind of channel is logical.
Declaration
public bool IsLogicalChannel { get; }
Property Value
Type | Description |
---|---|
bool |
Session
The session that has opened the given channel.
Declaration
public SmartcardSession Session { get; }
Property Value
Type | Description |
---|---|
SmartcardSession |
Methods
View SourceClose()
Closes the given channel to the Secure Element.
Declaration
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. |
Dispose()
Dispose
Declaration
public void Dispose()
~SmartcardChannel()
SmartcardChannel destructor.
Declaration
protected ~SmartcardChannel()
GetSelectedResponse()
Gets the response to the select command.
Declaration
public byte[] GetSelectedResponse()
Returns
Type | Description |
---|---|
byte[] | Byte array to retrieve the select response. |
GetTransmittedResponse()
Helper function to retrieve the response APDU of the previous transmit() call.
Declaration
public byte[] GetTransmittedResponse()
Returns
Type | Description |
---|---|
byte[] | Byte array for the response APDU plus status words. |
SelectNext()
Performs a selection of the next applet on the given channel that matches to the partial application ID (AID).
Declaration
public bool SelectNext()
Returns
Type | Description |
---|---|
bool | True or false depending whether another applet with the partial application ID (AID). |
Transmit(byte[])
Transmits the APDU command (as per ISO/IEC 7816-4) to the secure element.
Declaration
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. |