Class CtapException

All Implemented Interfaces:
Serializable

public class CtapException extends CommandException
An error on the CTAP-level, returned from the Authenticator.

These error codes are defined by the CTAP2 Status codes

See Also:
  • Field Details

  • Constructor Details

    • CtapException

      public CtapException(byte ctapError)
      Constructs a new CtapException with the specified CTAP error code.
      Parameters:
      ctapError - the CTAP error code returned from the authenticator
  • Method Details

    • getCtapError

      public byte getCtapError()
      Returns the CTAP error code associated with this exception.
      Returns:
      the CTAP error code
    • getErrorName

      public String getErrorName()
      Returns the name of the CTAP error associated with this exception.
      Returns:
      the CTAP error name as a String