OperationBase<T> Class
Namespace: Yubico.YubiKey.Otp.Operations Assembly: Yubico.YubiKey.dllBase class for OTP configuration operations.
public abstract class OperationBase<T> : Object where T : OperationBase<T>
Type Parameters
Class.Header.Syntax.TypeParameters:Name | Description |
---|---|
T | The child class type. |
Remarks
The reference to the child type allows builder methods and properties to return a reference to the calling class to allow chaining.
Constructors
Name | Description |
---|---|
OperationBase(IYubiKeyConnection, IOtpSession, Nullable<Slot>) | Constructs as OperationBase<T> instance. |
Properties
Name | Description |
---|---|
Connection | Reference to the IYubiKeyConnection for the YubiKey being configured. |
CurrentAccessCode | The six-byte access code currently set to protect the OTP slot. |
NewAccessCode | The six-byte access code to set for the OTP slot after applying the configuration. |
OtpSlot | The OTP Slot to configure. |
Session | A reference to the IOtpSession object that created the operation. |
Version | The firmware version on the YubiKey this task is associated with. |
Methods
Name | Description |
---|---|
Execute() | Commit the settings and perform the operation. |
ExecuteOperation() | Execute the operation here. |
PreLaunchOperation() | Validate all settings and choices here. |
SetNewAccessCode(SlotAccessCode) | Set the new access code the YubiKey slot will be programmed with. |
UseCurrentAccessCode(SlotAccessCode) | Set the current access code the YubiKey slot is programmed with. |