Google is committed to advancing racial equity for Black communities. See how.

KeyHandle

public class KeyHandle extends Object
implements Parcelable

This class is deprecated.
Please use Fido APIs instead.

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

Inherited Constant Summary

Public Constructor Summary

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

Public Method Summary

boolean
byte[]
ProtocolVersion
List<Transport>
int
int
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
toJSONObject()
Create JSON representation of a KeyHandle.
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Public Constructors

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

Public Methods

public boolean equals (Object obj)

public byte[] getBytes ()

public ProtocolVersion getProtocolVersion ()

public List<Transport> getTransports ()

public int getVersionCode ()

public int hashCode ()

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.

Throws
JSONException if the request is not well formed.

public JSONObject toJSONObject ()

Create JSON representation of a KeyHandle.

public String toString ()

public void writeToParcel (Parcel dest, int flags)