RegisterRequest

  • This class, representing a register request from the server, is deprecated and Fido APIs should be used instead.

  • The class includes constants like U2F_V1_CHALLENGE_BYTE_LENGTH and inherited constants from Parcelable.

  • It has a public constructor for creating a RegisterRequest object with protocol version, challenge value, and app ID.

  • Public methods allow getting app ID, challenge value, protocol version, and version code, as well as parsing from and converting to JSON objects.

public class RegisterRequest extends Object
implements Parcelable

This class is deprecated.
Please use Fido APIs instead.

Represents a register request from the server.

Constant Summary

int U2F_V1_CHALLENGE_BYTE_LENGTH

Inherited Constant Summary

Public Constructor Summary

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

Public Method Summary

boolean
equals(Object obj)
Generated by Eclipse.
String
byte[]
ProtocolVersion
int
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)

Inherited Method Summary

Constants

public static final int U2F_V1_CHALLENGE_BYTE_LENGTH

Constant Value: 65

Public Constructors

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

Public Methods

public boolean equals (Object obj)

Generated by Eclipse.

public String getAppId ()

public byte[] getChallengeValue ()

public ProtocolVersion getProtocolVersion ()

public int getVersionCode ()

public int hashCode ()

Generated by Eclipse.

public static RegisterRequest parseFromJson (JSONObject registerRequest)

Parses a U2F register request JSON object as a RegisterRequest.

Throws
JSONException if the input request is not well formed.

public JSONObject toJson ()

Create JSON representation of a RegisterRequest.

public void writeToParcel (Parcel dest, int flags)