Show / Hide Table of Contents

OperationBase<T> Class

Namespace: Yubico.YubiKey.Otp.Operations Assembly: Yubico.YubiKey.dll

Base class for OTP configuration operations.

C#
public abstract class OperationBase<T> where T : OperationBase<T>
Inheritance object OperationBase<T>
CalculateChallengeResponse
ConfigureChallengeResponse
ConfigureHotp
ConfigureNdef
ConfigureStaticPassword
ConfigureYubicoOtp
DeleteSlotConfiguration
UpdateSlot
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, 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.

In this article
Back to top Generated by DocFX