summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjh8801.jung <jh8801.jung@samsung.com>2017-07-03 06:28:40 (GMT)
committerjh8801.jung <jh8801.jung@samsung.com>2017-07-03 06:28:54 (GMT)
commitb6385839e8179ccfa051136dcecf67a70a17bce7 (patch)
tree0663e6968f360af6b12651dfbc28d419ae74e3a6
parent4f398e464fdd846571c5a24e07dfb1817c349953 (diff)
downloadsmartcard-b6385839e8179ccfa051136dcecf67a70a17bce7.zip
smartcard-b6385839e8179ccfa051136dcecf67a70a17bce7.tar.gz
smartcard-b6385839e8179ccfa051136dcecf67a70a17bce7.tar.bz2
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com> Change-Id: I471d85aed87122117415a287b6cd7aac4b7d9de8
-rw-r--r--Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardChannel.cs10
-rwxr-xr-xTizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardManager.cs2
-rw-r--r--Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardReader.cs5
-rw-r--r--Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardSession.cs8
4 files changed, 25 insertions, 0 deletions
diff --git a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardChannel.cs b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardChannel.cs
index 3a655ef..8c96427 100644
--- a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardChannel.cs
+++ b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardChannel.cs
@@ -23,6 +23,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// A class for Smartcard channel informations. It allows applications to handle channel informations.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <privilege>http://tizen.org/privilege/secureelement</privilege>
public class SmartcardChannel : IDisposable
{
@@ -33,6 +34,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Whether the kind of channel is basic.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool IsBasicChannel
{
get
@@ -50,6 +52,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Whether the kind of channel is logical.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool IsLogicalChannel
{
get
@@ -67,6 +70,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Whether the channel is closed.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool IsClosed
{
get
@@ -84,6 +88,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// The session that has opened the given channel.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public SmartcardSession Session
{
get
@@ -137,6 +142,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Closes the given channel to the Secure Element.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Close()
{
int ret = Interop.Smartcard.Channel.ChannelClose(_channelHandle);
@@ -151,6 +157,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Gets the response to the select command.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>Byte array to retrieve the SELECT response.</returns>
public byte[] GetSelectedResponse()
{
@@ -175,6 +182,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Transmits an APDU command (as per ISO/IEC 7816-4) to the Secure Element.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>Byte array for the response APDU plus status words.</returns>
/// <param name="cmd">Command APDU to be send to the secure element.</param>
public byte[] Transmit(byte[] cmd)
@@ -201,6 +209,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Helper function to retrieves the response APDU of the previous transmit() call.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>Byte array for the response APDU plus status words.</returns>
public byte[] GetTransmittedResponse()
{
@@ -225,6 +234,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Performs a selection of the next Applet on the given channel that matches to the partial Application ID(AID).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>True or false depending whether another applet with the partial Application ID(AID).</returns>
public bool SelectNext()
{
diff --git a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardManager.cs b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardManager.cs
index 1627cf8..d901ce3 100755
--- a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardManager.cs
+++ b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardManager.cs
@@ -23,12 +23,14 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// A class for Smartcard management. It allows applications to use Smartcard service.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <privilege>http://tizen.org/privilege/secureelement</privilege>
static public class SmartcardManager
{
/// <summary>
/// Gets the list of available Secure Element readers.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>List of SmartcardReader objects.</returns>
static public IEnumerable<SmartcardReader> GetReaders()
{
diff --git a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardReader.cs b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardReader.cs
index bfa1266..eb943d9 100644
--- a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardReader.cs
+++ b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardReader.cs
@@ -23,6 +23,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// A class for Smartcard reader informations. It allows applications to handle reader informations.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <privilege>http://tizen.org/privilege/secureelement</privilege>
public class SmartcardReader : IDisposable
{
@@ -34,6 +35,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// The name of reader.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Name
{
get
@@ -52,6 +54,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// The existence of secure element.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool IsSecureElementPresent
{
get
@@ -113,6 +116,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Connects to a Secure Element in the given reader.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>The SmartcardSession object.</returns>
public SmartcardSession OpenSession()
{
@@ -130,6 +134,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Closes all the sessions opened on the given reader.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void CloseSessions()
{
int ret = Interop.Smartcard.Reader.ReaderCloseSessions(_readerHandle);
diff --git a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardSession.cs b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardSession.cs
index bdadf29..9bae91e 100644
--- a/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardSession.cs
+++ b/Tizen.Network.Smartcard/Tizen.Network.Smartcard/SmartcardSession.cs
@@ -23,6 +23,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// A class for Smartcard session informations. It allows applications to handle session informations.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <privilege>http://tizen.org/privilege/secureelement</privilege>
public class SmartcardSession : IDisposable
{
@@ -37,6 +38,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// The reader object that provides the given session.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public SmartcardReader Reader
{
get
@@ -60,6 +62,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// The Answer to Reset(ATR) of this Secure Element.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public byte[] Atr
{
get
@@ -86,6 +89,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Whether the session is closed.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool IsClosed
{
get
@@ -149,6 +153,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Closes the connection with the Secure Element.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Close()
{
int ret = Interop.Smartcard.Session.SessionClose(_sessionHandle);
@@ -163,6 +168,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Closes any channel opened on the given session.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void CloseChannels()
{
int ret = Interop.Smartcard.Session.SessionCloseChannels(_sessionHandle);
@@ -186,6 +192,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Gets an access to the basic channel, as defined in the ISO/IEC 7816-4 specification (the one that has number 0).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>The SmartcardChannel object for basic channel.</returns>
/// <param name="aid">Byte array containing the Application ID(AID) to be selected on the given channel.</param>
/// <param name="p2">P2 byte of the SELECT command if executed.</param>
@@ -206,6 +213,7 @@ namespace Tizen.Network.Smartcard
/// <summary>
/// Open a logical channel with the Secure Element, selecting the Applet represented by the given Application ID(AID).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>The SmartcardChannel object for logical channel.</returns>
/// <param name="aid">Byte array containing the Application ID(AID) to be selected on the given channel.</param>
/// <param name="p2">P2 byte of the SELECT command if executed.</param>