ClientData

public class ClientData extends Object

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 for ClientData

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
equals(Object other)
int
String

Inherited Method Summary

Constants

public static final String KEY_CHALLENGE

Constant Value: "challenge"

public static final String KEY_CID_PUBKEY

Constant Value: "cid_pubkey"

public static final String KEY_ORIGIN

Constant Value: "origin"

public static final String KEY_TYPE

Constant Value: "typ"

public static final String TYPE_FINISH_ENROLLMENT

Constant Value: "navigator.id.finishEnrollment"

public static final String TYPE_GET_ASSERTION

Constant Value: "navigator.id.getAssertion"

Public Methods

public boolean equals (Object other)

public int hashCode ()

public String toJsonString ()

Returns
  • The stringified JSON object encoding of this ClientData object.