public FidoU2FDeviceInformation([NotNull] IHidDeviceInformation info) { if (info == null) { throw new ArgumentNullException(nameof(info)); } this.info = info; }
public U2FHidKeyId([NotNull] IHidDeviceInformation hidDeviceInformation) { if (hidDeviceInformation == null) { throw new ArgumentNullException(nameof(hidDeviceInformation)); } HidDeviceInformation = hidDeviceInformation; }
public FidoU2FDeviceInformation([NotNull] IHidDeviceInformation info) { if (info == null) throw new ArgumentNullException(nameof(info)); this.info = info; }
public static bool IsFidoU2F(this IHidDeviceInformation information) { return(information.UsagePage == FidoUsagePage && information.UsageId == FidoUsageU2Fhid); }