Class UafClient
Definition
- Namespace:
- Tizen.Account.FidoClient
- Assembly:
- Tizen.Account.FidoClient.dll
- API Level:
- 3
The FIDO UAF Client APIs
C#Copypublic static class UafClient : object
- Inheritance
-
UafClient
Properties
Declaration
C#Copypublic static int MajorVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Declaration
C#Copypublic static int MinorVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Declaration
C#Copypublic static int StautsOk { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Declaration
C#Copypublic static string VendorName { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
Methods
Declaration
C#Copypublic static Task<bool> CheckPolicyAsync(UafMessage uafMessage)
Parameters
Type | Name | Description |
---|---|---|
UafMessage | uafMessage | The FIDO UAF message which is received from the relying party server |
Returns
Type | Description |
---|---|
Task<Boolean> | True if the message can be handled by the device, else false |
Examples
CopyUafMessage uafRequest = new UafMessage() { Operation = "UafRequestJson" }; bool response = await UafClient.CheckPolicyAsync(uafRequest);
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/fido.client
Feature: http://tizen.org/feature/fido.uaf
View Source
NotifyResultAsync(Int32, UafResponse)
Notifies the FIDO client about the server result. FIDO Server sends the result of processing a UAF message to FIDO client.
Declaration
C#Copypublic static Task NotifyResultAsync(int responseCode, UafResponse response)
Parameters
Type | Name | Description |
---|---|---|
Int32 | responseCode | The status code received from Server.(StautsOk implies success) |
UafResponse | response | The FIDO response message sent to server in JSON format |
Returns
Type | Description |
---|---|
Task |
Remarks
This is especially important for cases when a new registration may be considered by the client to be in a pending state until it is communicated that the server accepted it
Examples
CopyUafResponse response = new UafResponse() { Response = "Responsejson" }; await UafClient.NotifyResultAsync(UafClient.StautsOk, response);
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/fido.client
Feature: http://tizen.org/feature/fido.uaf
Declaration
C#Copypublic static Task<UafResponse> ProcessRequestAsync(UafMessage uafMessage, string channelBindng)
Parameters
Type | Name | Description |
---|---|---|
UafMessage | uafMessage | The FIDO UAF message which is received from the relying party server |
String | channelBindng | The channel binding data in JSON format which is received from the relying party server |
Returns
Type | Description |
---|---|
Task<UafResponse> | FIDO response message |
Examples
CopyUafMessage uafRequest = new UafMessage() { Operation = "UafAuthRequestJson" }; var response = await UafClient.ProcessRequestAsync(uafRequest, null);