Package com.yubico.yubikit.core.fido
Class FidoProtocol
java.lang.Object
com.yubico.yubikit.core.fido.FidoProtocol
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class FidoProtocol
extends java.lang.Object
implements java.io.Closeable
-
Field Summary
Fields Modifier and Type Field Description static byte
TYPE_INIT
-
Constructor Summary
Constructors Constructor Description FidoProtocol(FidoConnection connection)
-
Method Summary
Modifier and Type Method Description void
close()
Version
getVersion()
byte[]
sendAndReceive(byte cmd, byte[] payload, CommandState state)
-
Field Details
-
TYPE_INIT
public static final byte TYPE_INIT- See Also:
- Constant Field Values
-
-
Constructor Details
-
FidoProtocol
- Throws:
java.io.IOException
-
-
Method Details
-
sendAndReceive
public byte[] sendAndReceive(byte cmd, byte[] payload, @Nullable CommandState state) throws java.io.IOException- Throws:
java.io.IOException
-
getVersion
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-