Class RawAuthenticateResponse
java.lang.Object
io.jans.as.model.fido.u2f.message.RawAuthenticateResponse
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlongThis is the big-endian representation of a counter value that the U2F device increments every time it performs an authentication operation.byte[]This is a ECDSA signature (on P-256)byteBit 0 is set to 1, which means that user presence was verified.
-
Field Details
-
USER_PRESENT_FLAG
public static final byte USER_PRESENT_FLAG- See Also:
-
-
Constructor Details
-
RawAuthenticateResponse
public RawAuthenticateResponse(byte userPresence, long counter, byte[] signature)
-
-
Method Details
-
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) -
checkUserPresence
- Throws:
BadInputException
-