Skip to content

Commit

Permalink
FIDO-Client Deprecation (Samsung#5469)
Browse files Browse the repository at this point in the history
Co-authored-by: randeepsingh01 <[email protected]>
  • Loading branch information
s01-verma and randeepsingh01 authored Sep 6, 2023
1 parent 5efb856 commit fe529ea
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace Tizen.Account.FidoClient
/// }
/// </code>
/// </example>
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public class AuthenticatorInformation
{
internal AuthenticatorInformation()
Expand All @@ -43,84 +44,98 @@ internal AuthenticatorInformation()
/// 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; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -48,6 +49,7 @@ public static class UafAuthenticatorFinder
/// </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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -58,6 +59,7 @@ static UafClient()
/// 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
Expand All @@ -70,6 +72,7 @@ public static string VendorName
/// 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
Expand All @@ -82,6 +85,7 @@ public static int MajorVersion
/// 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
Expand All @@ -94,6 +98,7 @@ public static int MinorVersion
/// 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
Expand Down Expand Up @@ -122,6 +127,7 @@ public static int StautsOk
/// 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)
Expand Down Expand Up @@ -157,6 +163,7 @@ public static async Task<bool> CheckPolicyAsync(UafMessage uafMessage)
/// 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)
Expand Down Expand Up @@ -222,6 +229,7 @@ private static void UafResponseMessageCallbackHandler(int errorCode, string uafR
/// 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)
Expand Down Expand Up @@ -256,4 +264,4 @@ private static void NotifyResult(int responseCode, string response)
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
* 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>
Expand Down Expand Up @@ -63,6 +66,7 @@ public enum AuthenticationAlgorithm
/// 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>
Expand Down Expand Up @@ -135,6 +139,7 @@ public enum UserVerificationMethod
/// 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>
Expand Down Expand Up @@ -172,6 +177,7 @@ public enum KeyProtectionType
/// 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>
Expand All @@ -197,6 +203,7 @@ public enum MatcherProtectionType
/// 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>
Expand Down Expand Up @@ -258,6 +265,7 @@ public enum AuthenticatorAttachmentHint
/// Authenticator's supported Attestation type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public enum AuthenticatorAttestationType
{
/// <summary>
Expand All @@ -277,6 +285,7 @@ public enum AuthenticatorAttestationType
/// Transaction confirmation display capability type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public enum TransactionConfirmationDisplayType
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@
* 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()
{
}
Expand All @@ -34,6 +38,7 @@ public UafMessage()
/// 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; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@
* 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()
{
}
Expand All @@ -34,6 +38,7 @@ public UafResponse()
/// 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; }
}
}
}

0 comments on commit fe529ea

Please sign in to comment.