Class ListResponse
The response to the ListCommand command, containing the YubiKey's configured credentials list.
public class ListResponse : OathResponse, IYubiKeyResponseWithData<List<Credential>>, IYubiKeyResponse
- Inheritance
-
objectListResponse
- Implements
- Inherited Members
Constructors
ListResponse(ResponseApdu)
Constructs a ListResponse instance based on a ResponseApdu received from the YubiKey.
public ListResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe 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
- MalformedYubiKeyResponseException
Thrown when the data provided does not meet the expectations, and cannot be parsed.