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 byteTYPE_INIT
-
Constructor Summary
Constructors Constructor Description FidoProtocol(FidoConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()VersiongetVersion()byte[]sendAndReceive(byte cmd, byte[] payload, CommandState state)
-
-
-
Field Detail
-
TYPE_INIT
public static final byte TYPE_INIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FidoProtocol
public FidoProtocol(FidoConnection connection) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
sendAndReceive
public byte[] sendAndReceive(byte cmd, byte[] payload, @Nullable CommandState state) throws java.io.IOException- Throws:
java.io.IOException
-
getVersion
public Version getVersion()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-