Class NdefUtils

java.lang.Object
com.yubico.yubikit.core.util.NdefUtils

public class NdefUtils extends Object
Parser that helps to extract OTP from nfc tag.
  • Constructor Details

    • NdefUtils

      public NdefUtils()
  • Method Details

    • getNdefPayload

      public static 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.