Class OathApplicationData
Represents the information returned when selecting the OATH application. Includes information such the salt and challenge which are needed for setting/validating a password.
public class OathApplicationData : ISelectApplicationData
- Inheritance
-
objectOathApplicationData
- Implements
Constructors
OathApplicationData(ReadOnlyMemory<byte>, FirmwareVersion, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>, HashAlgorithm)
Constructs an instance of the OathApplicationData class.
public OathApplicationData(ReadOnlyMemory<byte> rawData, FirmwareVersion version, ReadOnlyMemory<byte> salt, ReadOnlyMemory<byte> challenge, HashAlgorithm algorithm = HashAlgorithm.Sha1)
Parameters
rawData
ReadOnlyMemory<byte>version
FirmwareVersionsalt
ReadOnlyMemory<byte>challenge
ReadOnlyMemory<byte>algorithm
HashAlgorithm
Properties
Algorithm
What hash algorithm to use.
public HashAlgorithm Algorithm { get; }
Property Value
Challenge
The 8 byte challenge if authentication is configured.
public ReadOnlyMemory<byte> Challenge { get; }
Property Value
- ReadOnlyMemory<byte>
RawData
public ReadOnlyMemory<byte> RawData { get; }
Property Value
- ReadOnlyMemory<byte>
Salt
The device identifier.
public ReadOnlyMemory<byte> Salt { get; }
Property Value
- ReadOnlyMemory<byte>
Version
The version of the firmware currently running on the YubiKey.
public FirmwareVersion Version { get; }