Class BaseSelectApplicationCommand<TSelectResponse>
- Namespace
- Yubico.YubiKey.InterIndustry.Commands
- Assembly
- Yubico.YubiKey.dll
Selects a smart card application.
public abstract class BaseSelectApplicationCommand<TSelectResponse> : ISelectApplicationCommand<TSelectResponse>, IYubiKeyCommand<TSelectResponse> where TSelectResponse : ISelectApplicationResponse<ISelectApplicationData>
Type Parameters
TSelectResponse
- Inheritance
-
objectBaseSelectApplicationCommand<TSelectResponse>
- Implements
-
ISelectApplicationCommand<TSelectResponse>IYubiKeyCommand<TSelectResponse>
- Derived
Constructors
BaseSelectApplicationCommand(byte[])
Initializes a new instance of the SelectApplicationCommand class.
protected BaseSelectApplicationCommand(byte[] applicationId)
Parameters
applicationId
byte[]The byte representation of an application identifier.
BaseSelectApplicationCommand(YubiKeyApplication)
Initializes a new instance of the SelectApplicationCommand class.
protected BaseSelectApplicationCommand(YubiKeyApplication yubiKeyApplication)
Parameters
yubiKeyApplication
YubiKeyApplicationThe YubiKey application.
YubiKeyApplication.InterIndustry
is not a valid option.
Properties
Application
Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) that this command applies to.
public YubiKeyApplication Application { get; }
Property Value
- YubiKeyApplication
The value will always be
YubiKeyApplication.InterIndustry
for this command.
Methods
CreateCommandApdu()
Creates a CommandApdu instance that instructs the smart card to select the previously specified application.
public CommandApdu CreateCommandApdu()
Returns
CreateResponseForApdu(ResponseApdu)
Creates the appropriate response class that can parse the ResponseApdu.
public abstract TSelectResponse CreateResponseForApdu(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe ResponseApdu from the YubiKey.
Returns
- TSelectResponse