Class RawAuthenticateResponse


  • public class RawAuthenticateResponse
    extends Object
    The authenticate response produced by the token/key, which is transformed by the client into an AuthenticateResponse and sent to the server.
    Author:
    Yuriy Movchan Date: 05/14/2015
    • Constructor Detail

      • RawAuthenticateResponse

        public RawAuthenticateResponse​(byte userPresence,
                                       long counter,
                                       byte[] signature)
    • Method Detail

      • getUserPresence

        public byte getUserPresence()
        Bit 0 is set to 1, which means that user presence was verified. (This version of the protocol doesn't specify a way to request authentication responses without requiring user presence.) A different value of bit 0, as well as bits 1 through 7, are reserved for future use. The values of bit 1 through 7 SHOULD be 0
      • getCounter

        public long getCounter()
        This is the big-endian representation of a counter value that the U2F device increments every time it performs an authentication operation.
      • getSignature

        public byte[] getSignature()
        This is a ECDSA signature (on P-256)