ConfigureNdef Class
Namespace: Yubico.YubiKey.Otp.Operations Assembly: Yubico.YubiKey.dllConfigures a YubiKey's NDEF slot for text or URI.
C#
public class ConfigureNdef : OperationBase<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(Boolean) | 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". |