java.lang.Object |
↳ |
com.google.android.gms.fido.u2f.api.common.RegisterRequest |
Class Overview
Represents a register request from the server.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
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)
public
String
getAppId
()
public
byte[]
getChallengeValue
()
public
int
getVersionCode
()
public
static
RegisterRequest
parseFromJson
(JSONObject registerRequest)
Parses a U2F register request JSON object as a RegisterRequest.
Parameters |
registerRequest |
JSONObject |
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)
Parameters |
dest |
Parcel |
flags |
int |