-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathResponseData.cs
More file actions
60 lines (44 loc) · 1.57 KB
/
ResponseData.cs
File metadata and controls
60 lines (44 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using SharpKit.JavaScript;
namespace SharpKit.FIDO
{
/// <summary>
/// Error or RegisterResponse or SignResponse
/// - all in one class
/// Low-level API
/// </summary>
[JsType(JsMode.Json, PropertiesAsFields = true, NativeCasts = true)]
public class ResponseData
{
#region Error
[JsProperty(Name = "errorCode", NativeField = true)]
public ErrorCode ErrorCode { get; set; }
[JsProperty(Name = "errorMessage", NativeField = true)]
public JsString ErrorMessage { get; set; }
#endregion
#region RegisterResponse
[JsProperty(Name = "registrationData", NativeField = true)]
public JsString RegistrationData { get; set; }
//clientData
#endregion
#region SignResponse
/// <summary>
/// The keyHandle of the SignRequest that was processed.
/// </summary>
[JsProperty(Name = "keyHandle", NativeField = true)]
public JsString KeyHandle { get; set; }
/// <summary>
/// The raw response from U2F device, websafe-base64 encoded.
/// </summary>
[JsProperty(Name = "signatureData", NativeField = true)]
public JsString SignatureData { get; set; }
//clientData
#endregion
//Shared in RegisterResponse and SingResposne
/// <summary>
/// The client data created by the FIDO client, websafe-base64 encoded
/// </summary>
[JsProperty(Name = "clientData", NativeField = true)]
public JsString ClientData { get; set; }
}
}