public class WebAuthnAuthentication extends WebAuthn
_ACTION, _ALLOW_CREDENTIALS, _AUTHENTICATOR_SELECTION, _EXCLUDE_CREDENTIALS, _PUB_KEY_CRED_PARAMS, _TYPE, ALG, ALLOW_CREDENTIALS, ATTESTATION_PREFERENCE, AUTHENTICATOR_ATTACHMENT, AUTHENTICATOR_SELECTION, CHALLENGE, DISPLAY_NAME, EXCLUDE_CREDENTIALS, PUB_KEY_CRED_PARAMS, RELYING_PARTY_NAME, REQUIRE_RESIDENT_KEY, REQUIRED, TIMEOUT, TIMEOUT_DEFAULT, TYPE, USER_ID, USER_NAME, USER_VERIFICATION, WEB_AUTHN, WEBAUTHN_AUTHENTICATION, WEBAUTHN_REGISTRATION| Constructor and Description |
|---|
WebAuthnAuthentication(org.json.JSONObject input)
Constructor to create WebAuthnAuthentication
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnKeySelector webAuthnKeySelector,
WebAuthnDataRepository repository,
WebAuthnListener listener)
Perform WebAuthn Authentication
|
void |
authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnKeySelector webAuthnKeySelector,
WebAuthnListener listener)
Perform WebAuthn Authentication
|
protected void |
authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnListener listener,
java.util.List<PublicKeyCredentialDescriptor> allowCredentials,
byte[] userHandle) |
protected java.util.List<PublicKeyCredentialDescriptor> |
getAllowCredentials(org.json.JSONObject value)
Parse and retrieve all the allow credentials
|
protected <any> |
getSignPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialRequestOptions options) |
getCredentials, getRelyingPartyId, onWebAuthnExceptionpublic WebAuthnAuthentication(org.json.JSONObject input)
throws org.json.JSONException
input - The json from WebAuthn Authentication Nodeorg.json.JSONException - Failed to parse the Jsonprotected java.util.List<PublicKeyCredentialDescriptor> getAllowCredentials(org.json.JSONObject value)
throws org.json.JSONException
value - The json from WebAuthn Authentication Nodeorg.json.JSONException - Failed to parse the Jsonpublic void authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnKeySelector webAuthnKeySelector,
WebAuthnListener listener)
context - The Application ContextfragmentManager - The FragmentManager to manage the lifecycle of Fido API CallbackwebAuthnKeySelector - The Selector for user to select which credential to use (UsernameLess)listener - The Listener for the result event.public void authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnKeySelector webAuthnKeySelector,
WebAuthnDataRepository repository,
WebAuthnListener listener)
context - The Application ContextfragmentManager - The FragmentManager to manage the lifecycle of Fido API CallbackwebAuthnKeySelector - The Selector for user to select which credential to use (UsernameLess)repository - The repository to store key credential (UsernameLess)listener - The Listener for the result event.protected <any> getSignPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialRequestOptions options)
protected void authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnListener listener,
java.util.List<PublicKeyCredentialDescriptor> allowCredentials,
byte[] userHandle)