Class NfcSmartCardConnection

java.lang.Object
com.yubico.yubikit.android.transport.nfc.NfcSmartCardConnection
All Implemented Interfaces:
com.yubico.yubikit.core.smartcard.SmartCardConnection, com.yubico.yubikit.core.YubiKeyConnection, Closeable, AutoCloseable

public class NfcSmartCardConnection extends Object implements com.yubico.yubikit.core.smartcard.SmartCardConnection
NFC service for interacting with the YubiKey
  • Method Details

    • getTransport

      public com.yubico.yubikit.core.Transport getTransport()
      Specified by:
      getTransport in interface com.yubico.yubikit.core.smartcard.SmartCardConnection
    • isExtendedLengthApduSupported

      public boolean isExtendedLengthApduSupported()
      Specified by:
      isExtendedLengthApduSupported in interface com.yubico.yubikit.core.smartcard.SmartCardConnection
    • sendAndReceive

      public byte[] sendAndReceive(byte[] apdu) throws IOException
      Specified by:
      sendAndReceive in interface com.yubico.yubikit.core.smartcard.SmartCardConnection
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • getAtr

      public byte[] getAtr()
      Specified by:
      getAtr in interface com.yubico.yubikit.core.smartcard.SmartCardConnection