Class SmartcardSession
Definition
- Assembly:
- Tizen.Network.Smartcard.dll
The class for the Smartcard session information. It allows applications to handle the session information.
C#Copypublic class SmartcardSession : IDisposable
- Inheritance
-
objectSmartcardSession
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic byte[] Atr { get; }
Property Value
Type | Description |
---|---|
byte[] |
Declaration
C#Copypublic bool IsClosed { get; }
Property Value
Type | Description |
---|---|
bool |
Declaration
C#Copypublic SmartcardReader Reader { get; }
Property Value
Type | Description |
---|---|
SmartcardReader |
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 invalid operation. |
Declaration
C#Copypublic void CloseChannels()
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 ~SmartcardSession()
OpenBasicChannel(byte[], byte)
Gets an access to the basic channel, as defined in the ISO/IEC 7816-4 specification (the one that has number 0).
Declaration
C#Copypublic SmartcardChannel OpenBasicChannel(byte[] aid, byte p2)
Parameters
Type | Name | Description |
---|---|---|
byte[] | aid | The byte array containing the Application ID(AID) to be selected on the given channel. |
byte | p2 | P2 byte of the SELECT command if executed. |
Returns
Type | Description |
---|---|
SmartcardChannel | The SmartcardChannel object for the basic channel. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the Smartcard is not supported. |
System.InvalidOperationException | Thrown when the method failed due to invalid operation. |
OpenLogicalChannel(byte[], byte)
Open a logical channel with the secure element, selecting the Applet represented by the given application ID (AID).
Declaration
C#Copypublic SmartcardChannel OpenLogicalChannel(byte[] aid, byte p2)
Parameters
Type | Name | Description |
---|---|---|
byte[] | aid | The byte array containing the Application ID(AID) to be selected on the given channel. |
byte | p2 | P2 byte of the SELECT command if executed. |
Returns
Type | Description |
---|---|
SmartcardChannel | The SmartcardChannel object for the logical channel. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the Smartcard is not supported. |
System.InvalidOperationException | Thrown when the method failed due to an invalid operation. |