Skip to content

Commit 5284757

Browse files
authored
Remove binary serialization (#465)
1 parent 99dc99c commit 5284757

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
using System;
2-
using System.Runtime.Serialization;
1+
namespace Fido2NetLib;
32

4-
namespace Fido2NetLib;
5-
6-
[Serializable]
73
public class Fido2MetadataException : Exception
84
{
95
public Fido2MetadataException()
@@ -17,8 +13,4 @@ public Fido2MetadataException(string message) : base(message)
1713
public Fido2MetadataException(string message, Exception innerException) : base(message, innerException)
1814
{
1915
}
20-
21-
protected Fido2MetadataException(SerializationInfo info, StreamingContext context) : base(info, context)
22-
{
23-
}
2416
}

Src/Fido2.Models/Exceptions/Fido2VerificationException.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace Fido2NetLib;
77

8-
[Serializable]
98
public class Fido2VerificationException : Exception
109
{
1110
public Fido2VerificationException()
@@ -30,9 +29,5 @@ public Fido2VerificationException(string message, Exception innerException) : ba
3029
{
3130
}
3231

33-
protected Fido2VerificationException(SerializationInfo info, StreamingContext context) : base(info, context)
34-
{
35-
}
36-
3732
public Fido2ErrorCode Code { get; }
3833
}

Src/Fido2.Models/UndesiredMetadataStatusFido2VerificationException.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
using System;
2-
using System.Runtime.Serialization;
3-
4-
namespace Fido2NetLib;
1+
namespace Fido2NetLib;
52

63
/// <summary>
74
/// Exception thrown when a new attestation comes from an authenticator with a current reported security issue.
85
/// </summary>
9-
[Serializable]
106
public class UndesiredMetadataStatusFido2VerificationException : Fido2VerificationException
117
{
128
public UndesiredMetadataStatusFido2VerificationException(StatusReport statusReport) : base($"Authenticator found with undesirable status. Was {statusReport.Status}")
139
{
1410
StatusReport = statusReport;
1511
}
1612

17-
protected UndesiredMetadataStatusFido2VerificationException(SerializationInfo info, StreamingContext context) : base(info, context) { }
18-
1913
/// <summary>
2014
/// Status report from the authenticator that caused the attestation to be rejected.
2115
/// </summary>

0 commit comments

Comments
 (0)