Table of Contents

Class ListResponse

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

The response to the ListCommand command, containing the YubiKey's configured credentials list.

public class ListResponse : OathResponse, IYubiKeyResponseWithData<List<Credential>>, IYubiKeyResponse
Inheritance
object
ListResponse
Implements
Inherited Members

Constructors

ListResponse(ResponseApdu)

Constructs a ListResponse instance based on a ResponseApdu received from the YubiKey.

public ListResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The ResponseApdu returned by the YubiKey.

Methods

GetData()

Gets the list of Credential objects.

public List<Credential> GetData()

Returns

List<Credential>

The list of credentials.

Exceptions

InvalidOperationException

Thrown when Status is not equal to Success.

MalformedYubiKeyResponseException

Thrown when the data provided does not meet the expectations, and cannot be parsed.