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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • 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:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException