public class

RegisterRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.fido.u2f.api.common.RegisterRequest

Class Overview

Represents a register request from the server.

Summary

Constants
int U2F_V1_CHALLENGE_BYTE_LENGTH
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
RegisterRequest(ProtocolVersion protocolVersion, byte[] challengeValue, String appId)
Public Methods
boolean equals(Object obj)
Generated by Eclipse.
String getAppId()
byte[] getChallengeValue()
ProtocolVersion getProtocolVersion()
int getVersionCode()
int hashCode()
Generated by Eclipse.
static RegisterRequest parseFromJson(JSONObject registerRequest)
Parses a U2F register request JSON object as a RegisterRequest.
JSONObject toJson()
Create JSON representation of a RegisterRequest.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int U2F_V1_CHALLENGE_BYTE_LENGTH

Constant Value: 65 (0x00000041)

Public Constructors

public RegisterRequest (ProtocolVersion protocolVersion, byte[] challengeValue, String appId)

Parameters
protocolVersion ProtocolVersion
challengeValue byte
appId String

Public Methods

public boolean equals (Object obj)

Generated by Eclipse.

Parameters
obj Object
Returns
boolean

public String getAppId ()

Returns
String

public byte[] getChallengeValue ()

Returns
byte[]

public ProtocolVersion getProtocolVersion ()

Returns
ProtocolVersion

public int getVersionCode ()

Returns
int

public int hashCode ()

Generated by Eclipse.

Returns
int

See also:

public static RegisterRequest parseFromJson (JSONObject registerRequest)

Parses a U2F register request JSON object as a RegisterRequest.

Parameters
registerRequest JSONObject
Returns
RegisterRequest
Throws
JSONException if the input request is not well formed.

public JSONObject toJson ()

Create JSON representation of a RegisterRequest.

Returns
JSONObject

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int