Show / Hide Table of Contents

ConfigurationFlags Struct

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

Flags that control the functionality of the programmed OTP slot. This includes switching the slot's mode.

C#
public struct ConfigurationFlags

Fields

Name Description
AllowHidTrigger

Reserved for compatibility with the YubiKey 1. (Deprecated).

AllowManualUpdate

Configures the slot to allow for user-triggered static password change.

ChallengeResponse

Enables Challenge-Response mode instead of an OTP mode.

ExtendedScanCodes

Configures the slot to emit a fixed set of characters, commonly referred to as "static password" mode.

HmacLessThan64Bytes

Set when the HMAC message is less than 64 bytes.

HmacSha1ChallengeResponse

Enabled HMAC-SHA1 challenge-response mode.

None

No special configuration modifiers are requested for this configuration.

OathFixedModhex

Specifies that all bytes of the token identifier should be modhex.

OathFixedModhex1

Specifies that the first byte of the token identifier should be modhex.

OathFixedModhex2

Specifies that the first two bytes of the token identifier should be modhex.

SendReferenceString

Output a reference string of the ModHex characters 0..15 first.

ShortTicket

Truncate the OTP part to 16 characters.

StaticTicket

Uses the same "OTP" generation algorithm, but all dynamic fields are set to fixed values.

TicketFirst

Reserved for compatibility with the YubiKey 1. (Deprecated).

Use10msPacing

Add an inter-character pacing time of 10ms between keystrokes.

Use20msPacing

Add an inter-character pacing time of 20ms between keystrokes.

Use8DigitHotp

Configures the slot for OATH-HOTP mode, using an 8 digit password.

UseAlphaNumericPassword

Enable generation of mixed character and digits.

UseButtonTrigger

Require YubiKey button touch for challenge response configuration.

UseMixedCasePassword

Enable generation of mixed-case characters.

YubicoOtpChallengeResponse

Enables Yubico OTP challenge-response mode.

Methods

Name Description
ValidateFlagsForUpdate()

Ensure that no flags are set that cannot be used to update an existing configuration.

Operators

Name Description
implicit operator ConfigurationFlags(byte)

Implicitly convert a byte to a ConfigurationFlags object.

implicit operator byte(ConfigurationFlags)

Implicitly convert ConfigurationFlags to a byte.

In this article
Back to top Generated by DocFX