KeyHandle

  • The KeyHandle class represents a Security Key key handle and associated attributes but is deprecated.

  • Developers should use Fido APIs instead of the deprecated KeyHandle class.

  • The KeyHandle class implements the Parcelable interface, allowing it to be passed between components.

  • KeyHandle objects can be parsed from and converted to JSON format.

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
equals ( Object obj)
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
toJson ()
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
if the request is not well formed.

public JSONObject toJson ()

Create JSON representation of a KeyHandle.

public String toString ()

public void writeToParcel ( Parcel dest, int flags)

Create a Mobile Website
View Site in Mobile | Classic
Share by: