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_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)
Create a new instance of Fido2ApiClient for use in a non-activity Context.
static Fido2ApiClient
getFido2ApiClient(Activity activity)
Create a new instance of Fido2ApiClient for use in an Activity.
static Fido2PrivilegedApiClient
getFido2PrivilegedApiClient(Context context)
Create 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)
Create a new instance of U2fApiClient for use in a non-activity Context.
static U2fApiClient
getU2fApiClient(Activity activity)
Create a new instance of U2fApiClient for use in an Activity.

Inherited Method Summary

Constants

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)

Create a new instance of Fido2ApiClient for use in a non-activity Context. For example:


 private Fido2ApiClient mFido2ApiClient;
 ...
 mFido2ApiClient = Fido.getFido2ApiClient(this);
 

public static Fido2ApiClient getFido2ApiClient (Activity activity)

Create a new instance of Fido2ApiClient for use in an Activity. For example:


 private Fido2ApiClient mFido2ApiClient;
 ...
 mFido2ApiClient = Fido.getFido2ApiClient(this);
 

public static Fido2PrivilegedApiClient getFido2PrivilegedApiClient (Context context)

Create 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)

Create a new instance of U2fApiClient for use in a non-activity Context. For example:


 private U2fApiClient mU2fApiClient;
 ...
 mU2fApiClient = Fido.getU2fApiClient(this);
 

public static U2fApiClient getU2fApiClient (Activity activity)

Create a new instance of U2fApiClient for use in an Activity. For example:


 private U2fApiClient mU2fApiClient;
 ...
 mU2fApiClient = Fido.getU2fApiClient(this);