public CTAPResponseAttestation(CTAPauthenticator.CTAPResponseInner resi) : base(resi) { if (resi.ResponseDataCbor != null) { parse(resi.ResponseDataCbor); } }
public CTAPResponseAssertion(CTAPauthenticator.CTAPResponseInner resi) : base(resi) { SignCount = 0; Aaguid = new byte[0]; NumberOfCredentials = 0; Signature = new byte[0]; User_Id = new byte[0]; User_Name = ""; User_DisplayName = ""; CredentialId = new byte[0]; if (resi.ResponseDataCbor != null) { parse(resi.ResponseDataCbor); } }
public CTAPResponse(CTAPauthenticator.CTAPResponseInner resi) { if (resi.Status < 0) { Status = resi.Status; } else { Status = resi.StatusCodeCTAP; } if (resi.ResponseDataCbor == null) { System.Diagnostics.Debug.WriteLine("ResponseDataCbor is null"); // log //throw new Exception("ResponseDataCbor is null"); return; } ResponseDataJson = resi.ResponseDataCbor.ToJSONString(); System.Diagnostics.Debug.WriteLine(ResponseDataJson); // log this.DevType = resi.DevType; }