fix: api level from 3, docs for OpenSession*(Guid)
authorKrzysztof Dynowski <k.dynowski@samsung.com>
Tue, 23 May 2017 08:27:18 +0000 (10:27 +0200)
committerKrzysztof Dynowski <k.dynowski@samsung.com>
Tue, 23 May 2017 08:46:18 +0000 (10:46 +0200)
Change-Id: I2dfd10cfa86edc1363eff6e6fbcd3205e6287891

src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs

index 0031276..72e9ec2 100644 (file)
@@ -24,7 +24,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type denotes Session Login Method used in OpenSession
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public class LoginMethod
     {
         /// <summary>No login data is provided.</summary>
@@ -40,7 +40,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type denotes Value parameter
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public enum TEFValueType : UInt32
     {
         /// <summary>The Parameter is a ValueType tagged as input.</summary>
@@ -55,7 +55,7 @@ namespace Tizen.Security.TEEC
     /// This type denotes TempMemoryReference parameter
     /// describing a region of memory which needs to be temporarily registered for the duration of the operation.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public enum TEFTempMemoryType : UInt32
     {
         /// <summary>The Parameter is a TempMemoryType and is tagged as input.</summary>
@@ -69,7 +69,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type denotes SharedMemoryReference parameter
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public enum TEFRegisteredMemoryType : UInt32
     {
         /// <summary>The Parameter is a Registered Memory Reference that refers to the entirety of its parent Shared Memory block.</summary>
@@ -85,7 +85,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type denotes SharedMemory access direction
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     [Flags]
     public enum SharedMemoryFlags : UInt32
     {
@@ -101,7 +101,7 @@ namespace Tizen.Security.TEEC
     /// This type denotes a Shared Memory block which has either been registered
     /// with the implementation or allocated by it.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public sealed class SharedMemory
     {
         internal Interop.TEEC_SharedMemory shm;
@@ -112,7 +112,7 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This property represents shared memory size in bytes.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public UInt32 Size
         {
             get { return shm.size; }
@@ -120,7 +120,7 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This property represents start address of shared memory block.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public IntPtr Address
         {
             get { return shm.buffer; }
@@ -130,7 +130,7 @@ namespace Tizen.Security.TEEC
         /// This function makes a copy and is designed for convenient operations on small buffers.
         /// For large buffers direct address should be used.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="data">Source data buffer to copy data from</param>
         /// <param name="dstOffs">Starting offset in source shared memory</param>
         /// <exception cref="InvalidOperationException">The operation is invalid.</exception>
@@ -143,7 +143,7 @@ namespace Tizen.Security.TEEC
         /// This function makes a copy and is designed for convenient operations on small buffers.
         /// For large buffers direct address should be used.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="data">Destination data buffer to copy data into</param>
         /// <param name="dstOffs">Starting offset in destination shared memory</param>
         /// <exception cref="InvalidOperationException">The operation is invalid.</exception>
@@ -159,7 +159,7 @@ namespace Tizen.Security.TEEC
     /// also used for cancellation of operations, which may be desirable even if no payload is passed.
     /// Parameters are used to exchange data between CA and TA
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public abstract class Parameter
     {
         internal Parameter(uint t)
@@ -172,7 +172,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type defines a template for parameter types.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public abstract class BaseParameter<TEnum> : Parameter where TEnum : struct, IComparable, IFormattable, IConvertible // as close to Enum as possible
     {
         internal BaseParameter(TEnum t) : base((uint)(object)t)
@@ -183,20 +183,20 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This property represents access type to this parameter.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public TEnum Type { get; }
     }
 
     /// <summary>
     /// This type defines a temporary memory reference.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public sealed class TempMemoryReference : BaseParameter<TEFTempMemoryType>
     {
         /// <summary>
         /// Constructs Prameter object which holds info about temporary memory copied to/from TA
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="buffer">Address of allocated memory buffer</param>
         /// <param name="size">Size of the buffer</param>
         /// <param name="type">Kind of access allowed for TA <see cref="TEFTempMemoryType"/></param>
@@ -209,25 +209,25 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This property represents memory address of buffer.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public IntPtr Buffer { get; }
         /// <summary>
         /// This property represents size of buffer.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public uint Size { get; }
     };
 
     /// <summary>
     /// This type defines a memory reference that uses a pre-registered or pre-allocated Shared Memory block.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public sealed class RegisteredMemoryReference : BaseParameter<TEFRegisteredMemoryType>
     {
         /// <summary>
         /// Constructs Prameter object which holds info about registered memory shared with TA
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="parent">Shared memory - registered or allocated</param>
         /// <param name="size">Size of the buffer part</param>
         /// <param name="offset">Offset of buffer in shared memory</param>
@@ -242,17 +242,17 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This property represents SharedMemory that is referred to.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public SharedMemory Parent { get; }
         /// <summary>
         /// This property represents size (in bytes) of SharedMemory.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public uint Size { get; }
         /// <summary>
         /// This property represents offset (in bytes) from the begin of SharedMemory.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public uint Offset { get; }
     };
 
@@ -260,13 +260,13 @@ namespace Tizen.Security.TEEC
     /// This type defines a parameter that is not referencing shared memory, but carries instead small raw data
     /// passed by value.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public sealed class Value : BaseParameter<TEFValueType>
     {
         /// <summary>
         /// Constructs Prameter object which holds info about int values copied to/from TA
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="a">User paramter A</param>
         /// <param name="b">User paramter B</param>
         /// <param name="type">Kind of access allowed for TA <see cref="TEFValueType"/></param>
@@ -279,12 +279,12 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This property represents unsigned integer A.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public uint A { get; }
         /// <summary>
         /// This property represents unsigned integer B.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         public uint B { get; }
     };
 
@@ -292,7 +292,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type denotes a TEE Session, the logical container linking a Client Application with a particular Trusted Application.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public sealed class Session
     {
         private Interop.TEEC_Context context;
@@ -323,7 +323,7 @@ namespace Tizen.Security.TEEC
         /// This function closes a Session which has been opened with a Trusted Application.
         /// All Commands within the Session MUST have completed before this function can be called.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/tee.client</privilege>
         /// <privlevel>partner</privlevel>
         /// <feature>http://tizen.org/feature/security.tee</feature>
@@ -342,7 +342,7 @@ namespace Tizen.Security.TEEC
         /// Trusted Application's protocol.
         /// There can be up to four Parameter objects given in the <paramref name="paramlist"/> array
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="commandID">The command</param>
         /// <param name="paramlist">The array of parameters</param>
         /// <privilege>http://tizen.org/privilege/tee.client</privilege>
@@ -372,7 +372,7 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// Asynchronous version of InvokeCommand
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="commandID">The command</param>
         /// <param name="paramlist">The array of parameters</param>
         /// <param name="token">The token for task manipulation</param>
@@ -394,7 +394,7 @@ namespace Tizen.Security.TEEC
     /// <summary>
     /// This type denotes a TEE Context, the main logical container linking a Client Application with a particular TEE.
     /// </summary>
-    /// <since_tizen> 4 </since_tizen>
+    /// <since_tizen> 3 </since_tizen>
     public sealed class Context : IDisposable
     {
         private Interop.TEEC_Context context;
@@ -403,7 +403,7 @@ namespace Tizen.Security.TEEC
         /// This function (constructor) initializes a new TEE Context, forming a connection between this Client Application and the
         /// TEE identified by the string identifier name (empty or null name denotes default TEE).
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="name">The TEE name</param>
         /// <privilege>http://tizen.org/privilege/tee.client</privilege>
         /// <privlevel>partner</privlevel>
@@ -426,7 +426,7 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// This function implements IDisposable interface
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <privilege>http://tizen.org/privilege/tee.client</privilege>
         /// <privlevel>partner</privlevel>
         /// <feature>http://tizen.org/feature/security.tee</feature>
@@ -440,7 +440,7 @@ namespace Tizen.Security.TEEC
         /// The target Trusted Application is identified by a UUID passed in the parameter destination.
         /// There can be up to four Parameter objects given in the {paramlist} array
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="destination">The UUID of destination TA</param>
         /// <param name="loginMethod">The authentication algorithm <see cref="LoginMethod" /></param>
         /// <param name="connectionData">The data to be verified by given login method</param>
@@ -462,7 +462,7 @@ namespace Tizen.Security.TEEC
         /// <summary>
         /// @see OpenSession(Guid destination, uint connectionMethod, byte[] connectionData, Parameter[] paramlist, CancellationToken token)
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="destination">The UUID of destination TA</param>
         /// <returns>Returns opened session</returns>
         /// <privilege>http://tizen.org/privilege/tee.client</privilege>
@@ -471,7 +471,6 @@ namespace Tizen.Security.TEEC
         /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
         /// <exception cref="NotSupportedException">The required feature is not supported.</exception>
         /// <exception cref="InvalidOperationException">The operation is invalid.</exception>
-        /// <exception cref="ArgumentException">The argument is wrong</exception>
         public Session OpenSession(Guid destination)
         {
             Session ses = new Session(context);
@@ -483,7 +482,7 @@ namespace Tizen.Security.TEEC
         /// Asynchronous version of OpenSession
         /// @see OpenSession(Guid destination, uint connectionMethod, byte[] connectionData, Parameter[] paramlist, CancellationToken token)
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="destination">The UUID of destination TA</param>
         /// <param name="loginMethod">The authentication algorithm <see cref="LoginMethod" /></param>
         /// <param name="connectionData">The data to be verified by given login method</param>
@@ -509,7 +508,7 @@ namespace Tizen.Security.TEEC
         /// Asynchronous version of OpenSession
         /// @see OpenSession(Guid destination, uint connectionMethod, byte[] connectionData, Parameter[] paramlist, CancellationToken token)
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="destination">The UUID of destination TA</param>
         /// <param name="token">The token for task manipulation</param>
         /// <returns>Returns Task executing session open in backgroung</returns>
@@ -519,7 +518,6 @@ namespace Tizen.Security.TEEC
         /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
         /// <exception cref="NotSupportedException">The required feature is not supported.</exception>
         /// <exception cref="InvalidOperationException">The operation is invalid.</exception>
-        /// <exception cref="ArgumentException">One of arguments is wrong</exception>
         public async Task<Session> OpenSessionAsync(Guid destination, CancellationToken token = default(CancellationToken))
         {
             Task<Session> task = Task<Session>.Factory.StartNew(() =>
@@ -534,7 +532,7 @@ namespace Tizen.Security.TEEC
         /// the scope of the specified Context, in accordance with the parameters.
         /// The input <paramref name="memaddr"/> MUST point to the shared memory region to register
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="memaddr">The address of shared memory</param>
         /// <param name="size">The size of shared memory</param>
         /// <param name="flags">The flags describing access modes (Input and/or Output)</param>
@@ -561,7 +559,7 @@ namespace Tizen.Security.TEEC
         /// This function allocates a new block of memory as a block of Shared Memory within the scope of the
         /// specified Context, in accordance with the parameters.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="size">The size of shared memory</param>
         /// <param name="flags">The flags describing access modes (Input and/or Output)</param>
         /// <returns>Returns SharedMemory handler</returns>
@@ -591,7 +589,7 @@ namespace Tizen.Security.TEEC
         /// underlying memory from the TEE, but the memory region will stay available to the Client Application for
         /// other purposes as the memory is owned by it.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
+        /// <since_tizen> 3 </since_tizen>
         /// <param name="shm">The shared memory object returned by RegisterSharedMemory or AllocateSharedMemory</param>
         /// <privilege>http://tizen.org/privilege/tee.client</privilege>
         /// <privlevel>partner</privlevel>