This class is deprecated.
Please useFido
APIs instead.
ClientData is sent from the FIDO Client to the relying party, and its hash will be sent back from the relying party to the Client for verifying the signature on both registration and authentication responses.
The registration and authentication request messages contain a challenge parameter, which is defined as the SHA-256 hash of a (UTF8 representation of a) stringified JSON data structure that the FIDO client has to prepare. The FIDO Client must send the Client Data to the relying party during the verification phase, where the relying party can regenerate the challenge parameter (by hashing the client data), which is necessary in order to verify the signature both on the registration response message and authentication response message.
Nested Class Summary
class | ClientData.Builder | Builder forClientData . |
Constant Summary
String | KEY_CHALLENGE | |
String | KEY_CID_PUBKEY | |
String | KEY_ORIGIN | |
String | KEY_TYPE | |
String | TYPE_FINISH_ENROLLMENT | |
String | TYPE_GET_ASSERTION |
Public Method Summary
boolean | |
int |
hashCode()
|
String |
Inherited Method Summary
Constants
public static finalString KEY_CHALLENGE
public static finalString KEY_CID_PUBKEY
public static finalString KEY_ORIGIN
public static finalString KEY_TYPE
public static finalString TYPE_FINISH_ENROLLMENT
public static finalString TYPE_GET_ASSERTION
Public Methods
public booleanequals(Objectother)
public inthashCode()
publicStringtoJsonString()
Returns
- The stringified JSON object encoding of this ClientData object.