FIDO-Client Deprecation (#5469)
authorShivam Verma <s01.verma@samsung.com>
Wed, 6 Sep 2023 10:20:00 +0000 (15:50 +0530)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 10:20:00 +0000 (15:50 +0530)
Co-authored-by: randeepsingh01 <49635973+randeepsingh01@users.noreply.github.com>
src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/AuthenticatorInformation.cs
src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafAuthenticatorFinder.cs
src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafClient.cs
src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafEnumerations.cs
src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafMessage.cs
src/Tizen.Account.FidoClient/Tizen.Account.FidoClient/UafResponse.cs

index 7aa4138..9daefbe 100755 (executable)
@@ -33,6 +33,7 @@ namespace Tizen.Account.FidoClient
     ///     }
     /// </code>
     /// </example>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public class AuthenticatorInformation
     {
         internal AuthenticatorInformation()
@@ -43,84 +44,98 @@ namespace Tizen.Account.FidoClient
         /// The authenticator Title
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string Title { get; internal set; }
 
         /// <summary>
         /// The Authenticator AAID (Authenticator Attestation ID)
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string Aaid { get; internal set; }
 
         /// <summary>
         /// The Authenticator description
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string Description { get; internal set; }
 
         /// <summary>
         /// The Authenticator assertion scheme.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string AssertionScheme { get; internal set; }
 
         /// <summary>
         /// The Authenticator algorithm.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public AuthenticationAlgorithm AuthenticationAlgorithm { get; internal set; }
 
         /// <summary>
         /// The user verification method of this Authenticator
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public UserVerificationMethod UserVerification { get; internal set; }
 
         /// <summary>
         /// The key protection method of this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public KeyProtectionType KeyProtection { get; internal set; }
 
         /// <summary>
         /// The matcher protection method of this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public MatcherProtectionType MatcherProtection { get; internal set; }
 
         /// <summary>
         /// The attachment hint of this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public AuthenticatorAttachmentHint AttachmentHint { get; internal set; }
 
         /// <summary>
         /// Denotes the Authenticator is Second factor only which is supported by U2F standards.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public bool IsSecondFactorOnly { get; internal set; }
 
         /// <summary>
         /// The available attestation types for this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public IEnumerable<AuthenticatorAttestationType> AttestationTypes { get; internal set; }
 
         /// <summary>
         /// The Transaction Confirmation display type of this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public TransactionConfirmationDisplayType TcDisplayType { get; internal set; }
 
         /// <summary>
         /// The Transaction Confirmation display type of this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string TcDisplayContentType { get; internal set; }
 
         /// <summary>
         /// The icon of this Authenticator.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string Icon { get; internal set; }
     }
-}
\ No newline at end of file
+}
index 059e6c4..01e6faa 100755 (executable)
@@ -25,6 +25,7 @@ namespace Tizen.Account.FidoClient
     /// Class to find available FIDO specific authenticators on the device
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public static class UafAuthenticatorFinder
     {
         /// <summary>
@@ -48,6 +49,7 @@ namespace Tizen.Account.FidoClient
         /// </code>
         /// </example>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static async Task<IEnumerable<AuthenticatorInformation>> DiscoverAuthenticatorsAsync()
         {
             IEnumerable<AuthenticatorInformation> result = null;
index 363f9fb..c65a073 100755 (executable)
@@ -27,6 +27,7 @@ namespace Tizen.Account.FidoClient
     /// The FIDO UAF Client APIs
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public static class UafClient
     {
         private static string _vendorName = null;
@@ -58,6 +59,7 @@ namespace Tizen.Account.FidoClient
         /// The FIDO Client vendor name
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static string VendorName
         {
             get
@@ -70,6 +72,7 @@ namespace Tizen.Account.FidoClient
         /// The FIDO Client Major version
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static int MajorVersion
         {
             get
@@ -82,6 +85,7 @@ namespace Tizen.Account.FidoClient
         /// The FIDO Client Minor version
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static int MinorVersion
         {
             get
@@ -94,6 +98,7 @@ namespace Tizen.Account.FidoClient
         /// The FIDO Server response for successfull interaction.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static int StautsOk
         {
             get
@@ -122,6 +127,7 @@ namespace Tizen.Account.FidoClient
         ///     bool response = await UafClient.CheckPolicyAsync(uafRequest);
         /// </code>
         /// </example>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static async Task<bool> CheckPolicyAsync(UafMessage uafMessage)
         {
             if (uafMessage == null)
@@ -157,6 +163,7 @@ namespace Tizen.Account.FidoClient
         ///     var response = await UafClient.ProcessRequestAsync(uafRequest, null);
         /// </code>
         /// </example>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public static async Task<UafResponse> ProcessRequestAsync(UafMessage uafMessage, string channelBindng)
         {
             if (uafMessage == null)
@@ -222,6 +229,7 @@ namespace Tizen.Account.FidoClient
             ///     await UafClient.NotifyResultAsync(UafClient.StautsOk, response);
             /// </code>
             /// </example>
+            [Obsolete("Deprecated since API11. Might be removed in API13.")]
             public static async Task NotifyResultAsync(int responseCode, UafResponse response)
         {
             if (response == null)
@@ -256,4 +264,4 @@ namespace Tizen.Account.FidoClient
         }
 
     }
-}
\ No newline at end of file
+}
index 89367ff..0077b8c 100755 (executable)
  * limitations under the License.
  */
 
+using System;
+
 namespace Tizen.Account.FidoClient
 {
     /// <summary>
     /// Authenticator's supported algorithm and encoding
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum AuthenticationAlgorithm
     {
         /// <summary>
@@ -63,6 +66,7 @@ namespace Tizen.Account.FidoClient
     /// Authenticator's supported user verification method type.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum UserVerificationMethod
     {
         /// <summary>
@@ -135,6 +139,7 @@ namespace Tizen.Account.FidoClient
     /// Authenticator's supported key protection method type.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum KeyProtectionType
     {
         /// <summary>
@@ -172,6 +177,7 @@ namespace Tizen.Account.FidoClient
     /// Authenticator's supported matcher protection type.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum MatcherProtectionType
     {
         /// <summary>
@@ -197,6 +203,7 @@ namespace Tizen.Account.FidoClient
     /// Authenticator's supproted method to communicate to FIDO user device.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum AuthenticatorAttachmentHint
     {
         /// <summary>
@@ -258,6 +265,7 @@ namespace Tizen.Account.FidoClient
     /// Authenticator's supported Attestation type.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum AuthenticatorAttestationType
     {
         /// <summary>
@@ -277,6 +285,7 @@ namespace Tizen.Account.FidoClient
     /// Transaction confirmation display capability type.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public enum TransactionConfirmationDisplayType
     {
         /// <summary>
index 92fe2fe..d08d5ae 100755 (executable)
  * limitations under the License.
  */
 
+using System;
+
 namespace Tizen.Account.FidoClient
 {
     /// <summary>
     /// The FIDO message received from the relying party server
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public class UafMessage
     {
         /// <summary>
         /// The constructor
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public UafMessage()
         {
         }
@@ -34,6 +38,7 @@ namespace Tizen.Account.FidoClient
         /// The FIDO message in JSON format which is received from the relying party server
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string Operation { get; set; }
     }
-}
\ No newline at end of file
+}
index bc63076..e53e7d4 100755 (executable)
  * limitations under the License.
  */
 
+using System;
+
 namespace Tizen.Account.FidoClient
 {
     /// <summary>
     /// Represents FIDO response message
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Deprecated since API11. Might be removed in API13.")]
     public class UafResponse
     {
         /// <summary>
         /// The constructor
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public UafResponse()
         {
         }
@@ -34,6 +38,7 @@ namespace Tizen.Account.FidoClient
         /// FIDO response message in JSON format
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
+        [Obsolete("Deprecated since API11. Might be removed in API13.")]
         public string Response { set; get; }
     }
-}
\ No newline at end of file
+}