public class WebAuthnRegistration 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 |
|---|
WebAuthnRegistration(org.json.JSONObject input)
Constructor to create WebAuthnRegistration
|
| Modifier and Type | Method and Description |
|---|---|
protected AuthenticatorSelectionCriteria |
getAuthenticatorSelectionCriteria(org.json.JSONObject value)
Parse and retrieve AuthenticatorSelectionCriteria attribute
|
protected java.util.List<PublicKeyCredentialDescriptor> |
getExcludeCredentials(org.json.JSONObject value)
Parse and retrieve PublicKeyCredentialDescriptor attribute
|
protected java.util.List<PublicKeyCredentialParameters> |
getPublicKeyCredentialParameters(org.json.JSONObject value)
Parse and retrieve all the Public key credentials
|
protected <any> |
getRegisterPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialCreationOptions options) |
protected boolean |
isRequireResidentKey(org.json.JSONObject value)
Parse and retrieve requiredResidentKey attribute
|
void |
register(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnListener listener)
Perform WebAuthn Registration
|
getCredentials, getRelyingPartyId, onWebAuthnExceptionpublic WebAuthnRegistration(org.json.JSONObject input)
throws org.json.JSONException,
java.lang.UnsupportedOperationException
input - The json from WebAuthn Registration Nodeorg.json.JSONException - Failed to parse the Jsonjava.lang.UnsupportedOperationExceptionprotected java.util.List<PublicKeyCredentialParameters> getPublicKeyCredentialParameters(org.json.JSONObject value)
throws org.json.JSONException
value - The json from WebAuthn Registration Nodeorg.json.JSONException - Failed to parse the Jsonprotected boolean isRequireResidentKey(org.json.JSONObject value)
throws org.json.JSONException
value - The json from WebAuthn Registration Nodeorg.json.JSONException - Failed to parse the Jsonprotected AuthenticatorSelectionCriteria getAuthenticatorSelectionCriteria(org.json.JSONObject value)
throws org.json.JSONException
value - The json from WebAuthn Registration Nodeorg.json.JSONException - Failed to parse the Jsonprotected java.util.List<PublicKeyCredentialDescriptor> getExcludeCredentials(org.json.JSONObject value)
throws org.json.JSONException
value - The json from WebAuthn Registration Nodeorg.json.JSONException - Failed to parse the Jsonpublic void register(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnListener listener)
context - The Application ContextfragmentManager - The FragmentManager to manage the lifecycle of Fido API Callbacklistener - The Listener for the result event.protected <any> getRegisterPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialCreationOptions options)