Table of Contents

Class OathApplicationData

Namespace
Yubico.YubiKey.Oath
Assembly
Yubico.YubiKey.dll

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
object
OathApplicationData
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 FirmwareVersion
salt ReadOnlyMemory<byte>
challenge ReadOnlyMemory<byte>
algorithm HashAlgorithm

Properties

Algorithm

What hash algorithm to use.

public HashAlgorithm Algorithm { get; }

Property Value

HashAlgorithm

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; }

Property Value

FirmwareVersion