Show / Hide Table of Contents

ConfigureNdef Class

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

Configures a YubiKey's NDEF slot for text or URI.

C#
public class ConfigureNdef : OperationBase<ConfigureNdef>
Inheritance object OperationBase<ConfigureNdef> ConfigureNdef

Remarks

This class is not to be instantiated by non-SDK code. Instead, you will get a reference to an instance of this class by calling ConfigureNdef(Slot).

Once you have a reference to an instance, the member methods of this class can be used to chain together configurations using a builder pattern.

Methods

Name Description
AsText(string)

Configures the NDEF slot to use freeform text as the basis for the generated OTP.

AsUri(Uri?)

Configures the NDEF slot to use a URI as the basis for the generated OTP.

ExecuteOperation()

Execute the operation here.

PreLaunchOperation()

Validate all settings and choices here.

UseUtf16Encoding(bool)

Encode the NDEF text using the UTF-16LE instead of UTF-8.

WithLanguage(string)

Add an ISO/IANA language code to the NDEF text configuration. Defaults to "en-US".

In this article
Back to top Generated by DocFX