public class

ClientData

extends Object
java.lang.Object
   ↳ com.google.android.gms.fido.u2f.api.common.ClientData

Class Overview

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.

See also:

Summary

Nested Classes
class ClientData.Builder Builder for ClientData
Constants
String KEY_CHALLENGE
String KEY_CID_PUBKEY
String KEY_ORIGIN
String KEY_TYPE
String TYPE_FINISH_ENROLLMENT
String TYPE_GET_ASSERTION
Public Methods
boolean equals(Object other)
int hashCode()
String toJsonString()
[Expand]
Inherited Methods
From class java.lang.Object

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)

Parameters
other Object
Returns
boolean

public int hashCode ()

Returns
int

public String toJsonString ()

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