summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjh8801.jung <jh8801.jung@samsung.com>2017-07-24 06:48:33 (GMT)
committerjh8801.jung <jh8801.jung@samsung.com>2017-07-24 06:48:53 (GMT)
commit72b60ac487a6d24ced780678dec06dfea40813f9 (patch)
tree2366960228d4731ea13bfcacfc573d34333763a2
parentaebfa1916f349ddac5fdf568aac4d90b3e950425 (diff)
downloadnfc-72b60ac487a6d24ced780678dec06dfea40813f9.zip
nfc-72b60ac487a6d24ced780678dec06dfea40813f9.tar.gz
nfc-72b60ac487a6d24ced780678dec06dfea40813f9.tar.bz2
Add privilege tagrefs/changes/97/140197/1
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com> Change-Id: I7631074ac34c0f37320053215a32238cbe49e452
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs16
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs3
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs1
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs1
-rwxr-xr-x[-rw-r--r--]Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs1
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs5
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs1
7 files changed, 28 insertions, 0 deletions
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
index d74be00..a8d00dc 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
@@ -41,6 +41,7 @@ namespace Tizen.Network.Nfc
/// Event that is called when receiving Secure Element (SIM/UICC(Universal Integrated Circuit Card)) event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
public event EventHandler<SecureElementEventArgs> SecureElementEvent
{
add
@@ -65,6 +66,7 @@ namespace Tizen.Network.Nfc
/// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'ESE(SmartMX)' type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
public event EventHandler<SecureElementTranscationEventArgs> EseSecureElementTransactionEvent
{
add
@@ -89,6 +91,7 @@ namespace Tizen.Network.Nfc
/// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'UICC' type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
public event EventHandler<SecureElementTranscationEventArgs> UiccSecureElementTransactionEvent
{
add
@@ -113,6 +116,7 @@ namespace Tizen.Network.Nfc
/// Event that is called when when receiving HCE(Host Card Emulation) event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
public event EventHandler<HostCardEmulationEventArgs> HostCardEmulationEvent
{
add
@@ -165,6 +169,7 @@ namespace Tizen.Network.Nfc
/// Enable card emulation mode.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public void EnableCardEmulation()
@@ -181,6 +186,7 @@ namespace Tizen.Network.Nfc
/// Disable card emulation mode.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public void DisableCardEmulation()
@@ -198,6 +204,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>Enumeration value of NfcSecureElementCardEmulationMode.</returns>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
public NfcSecureElementCardEmulationMode GetCardEmulationMode()
{
int mode = 0;
@@ -214,6 +221,7 @@ namespace Tizen.Network.Nfc
/// Give the priority to the foreground application when dispatching transaction event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public void EnableTransactionForegroundDispatch()
@@ -230,6 +238,7 @@ namespace Tizen.Network.Nfc
/// Disable foreground dispatch for "EVT_TRANSACTION" to the givin application.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public void DisableTransactionForegroundDispatch()
@@ -249,6 +258,7 @@ namespace Tizen.Network.Nfc
/// <returns>'True' when application is currently the activated handler, otherwise 'False'.</returns>
/// <param name="seType">The type of Secure Element.</param>
/// <param name="aid">Application Id, specified in ISO/IEC 7816-4.</param>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
@@ -272,6 +282,7 @@ namespace Tizen.Network.Nfc
/// <returns>'True' when application is currently the activated handler, otherwise 'False'.</returns>
/// <param name="seType">The type of Secure Element.</param>
/// <param name="category">Enumeration value of category.</param>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
@@ -295,6 +306,7 @@ namespace Tizen.Network.Nfc
/// <param name="seType">The type of Secure Element.</param>
/// <param name="category">Enumeration value of category.</param>
/// <param name="aid">Application Id, specified in ISO/IEC 7816-4.</param>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
@@ -315,6 +327,7 @@ namespace Tizen.Network.Nfc
/// <param name="seType">The type of Secure Element.</param>
/// <param name="category">Enumeration value of category.</param>
/// <param name="aid">Application Id, specified in ISO/IEC 7816-4.</param>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
@@ -332,6 +345,7 @@ namespace Tizen.Network.Nfc
/// Sets the application as a preferred handler.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public void SetPreferredApplication()
@@ -348,6 +362,7 @@ namespace Tizen.Network.Nfc
/// Unsets the application as a preferred handler.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public void UnsetPreferredApplication()
@@ -367,6 +382,7 @@ namespace Tizen.Network.Nfc
/// <returns>List of NfcRegisteredAidInformation objects.</returns>
/// <param name="seType">The type of Secure Element.</param>
/// <param name="category">Enumeration value of category.</param>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs
index 439fec7..c8ad62e 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs
@@ -130,6 +130,7 @@ namespace Tizen.Network.Nfc
/// The Secure Element type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
static public NfcSecureElementType SecureElementType
{
get
@@ -176,6 +177,7 @@ namespace Tizen.Network.Nfc
/// Enable or disable the system handling for tag and target discovered event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
static public bool SystemHandlerEnabled
{
get
@@ -319,6 +321,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>A task indicates whether the Activate method is done or not.</returns>
+ /// <privilege>http://tizen.org/privilege/nfc.admin</privilege>
static public Task SetActivationAsync(bool activation)
{
bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs
index a1a5308..90a1c4f 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs
@@ -91,6 +91,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="ndefMessage">NfcNdefMessage object.</param>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs
index ac3c693..0c9945b 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs
@@ -85,6 +85,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>NfcP2p object.</returns>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public NfcP2p GetConnectedTarget()
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs
index e882ba7..0baa11a 100644..100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs
@@ -64,6 +64,7 @@ namespace Tizen.Network.Nfc
/// <since_tizen> 3 </since_tizen>
/// <param name="response">The bytes array of response data.</param>
/// <param name="responseLength">The size of response bytes array.</param>
+ /// <privilege>http://tizen.org/privilege/nfc.cardemulation</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
index 7643171..c0008c8 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
@@ -137,6 +137,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>List of NfcTagInformation objects.</returns>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public IEnumerable<NfcTagInformation> ForeachInformation()
@@ -172,6 +173,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="buffer">The binary data for parameter or additional commands.</param>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
@@ -205,6 +207,7 @@ namespace Tizen.Network.Nfc
/// Reads NDEF formatted data from NFC tag.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public Task<NfcNdefMessage> ReadNdefMessageAsync()
@@ -239,6 +242,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="ndefMessage">The NfcNdefMessage object.</param>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
@@ -267,6 +271,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="keyValue">The key value that may need to format the tag.</param>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs
index 61c6c1b..9a36264 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs
@@ -85,6 +85,7 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>NfcTag object.</returns>
+ /// <privilege>http://tizen.org/privilege/nfc</privilege>
/// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
/// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public NfcTag GetConnectedTag()