Skip to content

Commit 7763f8d

Browse files
authored
misc: Rename RawData in MakeCredentialData
1 parent d7456fe commit 7763f8d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/Fido2/MakeCredentialData.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ public class MakeCredentialData
168168

169169

170170
/// <summary>
171-
/// This returns the CBOR encoded raw response of the MakeCredential operation from the YubiKey
171+
/// This returns the raw CBOR encoded credential data from the YubiKey, as returned by the MakeCredential operation.
172172
/// </summary>
173-
public ReadOnlyMemory<byte> RawResponse { get; private set; }
173+
public ReadOnlyMemory<byte> RawCredentialData { get; private set; }
174174

175175
// The default constructor explicitly defined. We don't want it to be
176176
// used.
@@ -198,8 +198,8 @@ private MakeCredentialData()
198198
/// </exception>
199199
public MakeCredentialData(ReadOnlyMemory<byte> cborEncoding)
200200
{
201-
RawResponse = cborEncoding;
202-
var map = new CborMap<int>(cborEncoding);
201+
RawCredentialData = cborEncoding;
202+
var map = new CborMap<int>(RawCredentialData);
203203

204204
try
205205
{

Yubico.YubiKey/tests/unit/Yubico/YubiKey/Fido2/CredentialDataTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ namespace Yubico.YubiKey.Fido2
1919
public class CredentialDataTests
2020
{
2121
[Fact]
22-
public void RawData_Is_Set()
22+
public void RawCredentialData_Is_Set()
2323
{
2424
byte[] encoding = GetSampleEncoding();
2525
var cData = new MakeCredentialData(encoding);
26-
Assert.Equal(encoding, cData.RawData);
26+
Assert.Equal(encoding, cData.RawCredentialData);
2727
}
2828

2929

0 commit comments

Comments
 (0)