Page Summary
-
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.
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
Public Method Summary
| boolean | |
| String |
getAppId()
|
| 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
Public Constructors
public RegisterRequest (ProtocolVersion protocolVersion, byte[] challengeValue, String appId)
Public Methods
public boolean equals (Object obj)
Generated by Eclipse.
See Also
public String getAppId ()
public byte[] getChallengeValue ()
public ProtocolVersion getProtocolVersion ()
public int getVersionCode ()
public int hashCode ()
Generated by Eclipse.
See Also
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.