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 Activity.onActivityResult(int, int, Intent) after launching Fido2PendingIntent.
String FIDO2_KEY_ERROR_EXTRA This constant is deprecated. use FIDO2_KEY_CREDENTIAL_EXTRA to fetch PublicKeyCredential instead. PublicKeyCredential contains an AuthenticatorErrorResponse.
String FIDO2_KEY_RESPONSE_EXTRA This constant is deprecated. use FIDO2_KEY_CREDENTIAL_EXTRA to fetch PublicKeyCredential instead. PublicKeyCredential contains an AuthenticatorAttestationResponse or an AuthenticatorAssertionResponse.
String KEY_RESPONSE_EXTRA The key used by the calling Activity to retrieve ResponseData from the Intent received by Activity.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.
final static SourceDirectTransferClient
getSourceDirectTransferClient(Context context)
Creates a new instance of SourceDirectTransferClient for use in a non-activity Context.
final static SourceDirectTransferClient
getSourceDirectTransferClient(Activity activity)
Creates a new instance of SourceDirectTransferClient for use in a 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 Activity.onActivityResult(int, int, Intent) after launching Fido2PendingIntent.

Constant Value: "FIDO2_CREDENTIAL_EXTRA"

public static final String FIDO2_KEY_ERROR_EXTRA

This constant is deprecated.
use FIDO2_KEY_CREDENTIAL_EXTRA to fetch PublicKeyCredential instead. PublicKeyCredential contains an AuthenticatorErrorResponse.

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

Constant Value: "FIDO2_ERROR_EXTRA"

public static final String FIDO2_KEY_RESPONSE_EXTRA

This constant is deprecated.
use FIDO2_KEY_CREDENTIAL_EXTRA to fetch PublicKeyCredential instead. PublicKeyCredential contains an AuthenticatorAttestationResponse or an AuthenticatorAssertionResponse.

The key used by the calling Activity to retrieve AuthenticatorAttestationResponse or AuthenticatorAssertionResponse from the Intent received by Activity.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 Activity.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 final SourceDirectTransferClient getSourceDirectTransferClient (Context context)

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

public static final SourceDirectTransferClient getSourceDirectTransferClient (Activity activity)

Creates a new instance of SourceDirectTransferClient for use in a 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.