Class SmartcardChannel
Definition
- Assembly:
- Tizen.Network.Smartcard.dll
The class for Smartcard channel information. It allows applications to handle the channel information.
C#Copypublic class SmartcardChannel : IDisposable
- Inheritance
-
objectSmartcardChannel
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic bool IsBasicChannel { get; }
Property Value
Type | Description |
---|---|
bool |
Declaration
C#Copypublic bool IsClosed { get; }
Property Value
Type | Description |
---|---|
bool |
Declaration
C#Copypublic bool IsLogicalChannel { get; }
Property Value
Type | Description |
---|---|
bool |
Declaration
C#Copypublic SmartcardSession Session { get; }
Property Value
Type | Description |
---|---|
SmartcardSession |
Methods
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected ~SmartcardChannel()
Declaration
C#Copypublic 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#Copypublic 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#Copypublic 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#Copypublic 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