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

Fido

public class Fido extends Object

Entry point for Fido APIs.

FIDO (Fast IDentity Online), which is the industry alliance where Security Keys are being standardized.

Constant Summary

String FIDO2_KEY_CREDENTIAL_EXTRA The key used by the calling Activity to retrieve PublicKeyCredential from the Intent received by onActivityResult(int, int, Intent) after launching Fido2PendingIntent.
String FIDO2_KEY_ERROR_EXTRA The key used by the calling Activity to retrieve AuthenticatorErrorResponse from the Intent received by onActivityResult(int, int, Intent) after launching Fido2PendingIntent.
String FIDO2_KEY_RESPONSE_EXTRA The key used by the calling Activity to retrieve AuthenticatorAttestationResponse or AuthenticatorAssertionResponse from the Intent received by onActivityResult(int, int, Intent) after launching Fido2PendingIntent.
String KEY_RESPONSE_EXTRA The key used by the calling Activity to retrieve ResponseData from the Intent received by onActivityResult(int, int, Intent) after launching U2fPendingIntent.

Public Method Summary

static Fido2ApiClient
getFido2ApiClient(Context context)
Creates a new instance of Fido2ApiClient for use in a non-activity Context.
static Fido2ApiClient
getFido2ApiClient(Activity activity)
Creates a new instance of Fido2ApiClient for use in an Activity.
static Fido2PrivilegedApiClient
getFido2PrivilegedApiClient(Context context)
Creates a new instance of Fido2PrivilegedApiClient for use in a non-activity Context.
static Fido2PrivilegedApiClient
getFido2PrivilegedApiClient(Activity activity)
Create a new instance of Fido2PrivilegedApiClient for use in an Activity.
static U2fApiClient
getU2fApiClient(Context context)
Creates a new instance of U2fApiClient for use in a non-activity Context.
static U2fApiClient
getU2fApiClient(Activity activity)
Creates a new instance of U2fApiClient for use in an Activity.

Inherited Method Summary

Constants

public static final String FIDO2_KEY_CREDENTIAL_EXTRA

The key used by the calling Activity to retrieve PublicKeyCredential from the Intent received by onActivityResult(int, int, Intent) after launching Fido2PendingIntent.

Constant Value: "FIDO2_CREDENTIAL_EXTRA"

public static final String FIDO2_KEY_ERROR_EXTRA

The key used by the calling Activity to retrieve AuthenticatorErrorResponse from the Intent received by onActivityResult(int, int, Intent) after launching Fido2PendingIntent.

Constant Value: "FIDO2_ERROR_EXTRA"

public static final String FIDO2_KEY_RESPONSE_EXTRA

The key used by the calling Activity to retrieve AuthenticatorAttestationResponse or AuthenticatorAssertionResponse from the Intent received by onActivityResult(int, int, Intent) after launching Fido2PendingIntent.

Constant Value: "FIDO2_RESPONSE_EXTRA"

public static final String KEY_RESPONSE_EXTRA

The key used by the calling Activity to retrieve ResponseData from the Intent received by onActivityResult(int, int, Intent) after launching U2fPendingIntent.

Constant Value: "RESPONSE_EXTRA"

Public Methods

public static Fido2ApiClient getFido2ApiClient (Context context)

Creates a new instance of Fido2ApiClient for use in a non-activity Context.

public static Fido2ApiClient getFido2ApiClient (Activity activity)

Creates a new instance of Fido2ApiClient for use in an Activity.

public static Fido2PrivilegedApiClient getFido2PrivilegedApiClient (Context context)

Creates a new instance of Fido2PrivilegedApiClient for use in a non-activity Context.

public static Fido2PrivilegedApiClient getFido2PrivilegedApiClient (Activity activity)

Create a new instance of Fido2PrivilegedApiClient for use in an Activity.

public static U2fApiClient getU2fApiClient (Context context)

Creates a new instance of U2fApiClient for use in a non-activity Context.

public static U2fApiClient getU2fApiClient (Activity activity)

Creates a new instance of U2fApiClient for use in an Activity.