DSInternals/Src/DSInternals.Common/Data/Hello/FidoAuthenticatorFlags.cs
Alex Seigler dde9965177 Add parser for Key Credential Link with KEY_USAGE_FIDO (#90)
* Add parser for Key Credential Link with KEY_USAGE_FIDO
* Update .NET Framework requirements from 4.5.1 to 4.7 to support ECPoint, ECCurve, and related.
* Update package configuration
* Add more FIDO related tests
2019-07-12 16:24:06 +02:00

57 lines
1.6 KiB
C#

using System;
namespace DSInternals.Common.Data.Fido
{
/// <summary>
/// Authenticator data flags
/// <see cref="https://www.w3.org/TR/webauthn/#flags"/>
/// </summary>
[Flags]
public enum AuthenticatorFlags : byte
{
/// <summary>
/// User Present indicates that the user presence test has completed successfully.
/// <see cref="https://www.w3.org/TR/webauthn/#up"/>
/// </summary>
UP = 0x1,
/// <summary>
/// Reserved for future use (RFU1)
/// </summary>
RFU1 = 0x2,
/// <summary>
/// User Verified indicates that the user verification process has completed successfully.
/// <see cref="https://www.w3.org/TR/webauthn/#uv"/>
/// </summary>
UV = 0x4,
/// <summary>
/// Reserved for future use (RFU2)
/// </summary>
RFU2 = 0x8,
/// <summary>
/// Reserved for future use (RFU3)
/// </summary>
RFU3 = 0x10,
/// <summary>
/// Reserved for future use (RFU4)
/// </summary>
RFU4 = 0x20,
/// <summary>
/// Attested credential data included indicates that the authenticator added attested credential data to the authenticator data.
/// <see cref="https://www.w3.org/TR/webauthn/#attested-credential-data"/>
/// </summary>
AT = 0x40,
/// <summary>
/// Extension data included indicates that the authenticator added extension data to the authenticator data.
/// <see cref="https://www.w3.org/TR/webauthn/#authdataextensions"/>
/// </summary>
ED = 0x80,
}
}