Package com.yubico.yubikit.core.util
Class NdefUtils
java.lang.Object
com.yubico.yubikit.core.util.NdefUtils
public class NdefUtils
extends java.lang.Object
Parser that helps to extract OTP from nfc tag.
-
Constructor Summary
Constructors Constructor Description NdefUtils()
-
Method Summary
Modifier and Type Method Description static java.lang.String
getNdefPayload(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
public static java.lang.String getNdefPayload(byte[] ndefData)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.
-