ApplicationSession Constructor
ApplicationSession(ILogger, IYubiKeyDevice, YubiKeyApplication, ScpKeyParameters)
Initializes a new instance of the ApplicationSession class with logging, YubiKey device, application, and optional SCP key parameters.
C#
protected ApplicationSession(ILogger logger, IYubiKeyDevice device, YubiKeyApplication application, ScpKeyParameters keyParameters)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger | logger | The logger instance used for logging information. |
IYubiKeyDevice | device | The YubiKey device to establish a session with. |
YubiKeyApplication | application | The specific YubiKey application to connect to. |
ScpKeyParameters | keyParameters | The optional parameters for an SCP connection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when the |
System.InvalidOperationException | Thrown when the Yubikey does not support the requested SCP connection. |