Package com.yubico.yubikit.core.util
Class NdefUtils
java.lang.Object
com.yubico.yubikit.core.util.NdefUtils
Parser that helps to extract OTP from nfc tag.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetNdefPayload(byte[] ndefData) Returns the String payload portion (an OTP, for example) of a YubiKey's NDEF data.static byte[]getNdefPayloadBytes(byte[] ndefData) Returns the byte payload portion (static password scan codes, for example) of a YubiKey's NDEF data.
-
Constructor Details
-
NdefUtils
public NdefUtils()
-
-
Method Details
-
getNdefPayload
Returns the String payload portion (an OTP, for example) of a YubiKey's NDEF data. -
getNdefPayloadBytes
public static byte[] getNdefPayloadBytes(byte[] ndefData) Returns the byte payload portion (static password scan codes, for example) of a YubiKey's NDEF data.
-