KeyHandle | Doclava
public class

KeyHandle

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

Class Overview

An object representing a Security Key key handle and associated attributes.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
KeyHandle(byte[] keyHandleBytes, ProtocolVersion protocolVersion, List<Transport> transports)
Public Methods
boolean equals(Object obj)
byte[] getBytes()
ProtocolVersion getProtocolVersion()
List<Transport> getTransports()
int getVersionCode()
int hashCode()
static KeyHandle parseFromJson(JSONObject registeredKey)
Parses a JSON object, which is assumed to be of a U2F signRequest or registeredKey type, as a KeyHandle.
JSONObject toJson()
Create JSON representation of a KeyHandle.
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public KeyHandle (byte[] keyHandleBytes, ProtocolVersion protocolVersion, List<Transport> transports)

Parameters
keyHandleBytes byte

protocolVersion ProtocolVersion

transports List

Public Methods

public boolean equals (Object obj)

Parameters
obj Object

Returns
boolean

public byte[] getBytes ()

Returns
byte[]

public ProtocolVersion getProtocolVersion ()

Returns
ProtocolVersion

public List<Transport> getTransports ()

Returns
List<Transport>

public int getVersionCode ()

Returns
int

public int hashCode ()

Returns
int

public static KeyHandle parseFromJson (JSONObject registeredKey)

Parses a JSON object, which is assumed to be of a U2F signRequest or registeredKey type, as a KeyHandle.

Parameters
registeredKey JSONObject

Returns
KeyHandle

Throws
JSONException if the request is not well formed.

public JSONObject toJson ()

Create JSON representation of a KeyHandle.

Returns
JSONObject

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel

flags int