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 Summary
Modifier and TypeMethodDescriptionvoid
close()
byte[]
getAtr()
com.yubico.yubikit.core.Transport
boolean
byte[]
sendAndReceive
(byte[] apdu)
-
Method Details
-
getTransport
public com.yubico.yubikit.core.Transport getTransport()- Specified by:
getTransport
in interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection
-
isExtendedLengthApduSupported
public boolean isExtendedLengthApduSupported()- Specified by:
isExtendedLengthApduSupported
in interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection
-
sendAndReceive
- Specified by:
sendAndReceive
in interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getAtr
public byte[] getAtr()- Specified by:
getAtr
in interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection
-