public class WebAuthnAuthentication extends WebAuthn
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<PublicKeyCredentialDescriptor> |
allowCredentials |
protected byte[] |
challenge |
protected java.lang.String |
relayingPartyId |
protected java.lang.Double |
timeout |
protected java.lang.String |
userVerification |
_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,
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 java.util.List<PublicKeyCredentialSource> |
getPublicKeyCredentialSource(android.content.Context context)
Retrieve the
PublicKeyCredentialSource |
protected <any> |
getSignPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialRequestOptions options) |
getCredentials, getRelyingPartyId, onWebAuthnExceptionprotected final java.util.List<PublicKeyCredentialDescriptor> allowCredentials
protected final java.lang.String relayingPartyId
protected final java.lang.Double timeout
protected final byte[] challenge
protected final java.lang.String userVerification
public 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.protected java.util.List<PublicKeyCredentialSource> getPublicKeyCredentialSource(android.content.Context context)
PublicKeyCredentialSourcecontext - The Application ContextPublicKeyCredentialSourceprotected <any> getSignPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialRequestOptions options)
protected void authenticate(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnListener listener,
java.util.List<PublicKeyCredentialDescriptor> allowCredentials,
byte[] userHandle)