Class Fido2ClientFactory
java.lang.Object
com.thalesgroup.gemalto.fido2.client.Fido2ClientFactory
A factory for creating
Fido2Client instances.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Fido2ClientcreateFido2Client(android.content.Context context) Creates a new instance ofFido2Client.
-
Method Details
-
createFido2Client
@NonNull @WorkerThread public static Fido2Client createFido2Client(@NonNull android.content.Context context) throws Fido2Exception Creates a new instance ofFido2Client.This method performs initial setup and should be called on a background thread to avoid blocking the main thread.
- Parameters:
context- The application context. Must not be null.- Returns:
- A new
Fido2Clientinstance. - Throws:
Fido2Exception- if an error occurs during initialization, such as an unsafe environment being detected.IllegalArgumentException- ifcontextis null.- Since:
- 1.3.0
-