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