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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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.