Class NfcSmartCardConnection

  • All Implemented Interfaces:
    com.yubico.yubikit.core.smartcard.SmartCardConnection, com.yubico.yubikit.core.YubiKeyConnection, java.io.Closeable, java.lang.AutoCloseable

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

      • 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 java.io.IOException
        Specified by:
        sendAndReceive in interface com.yubico.yubikit.core.smartcard.SmartCardConnection
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException