public class WebAuthnRegistration extends WebAuthn
| Modifier and Type | Field and Description |
|---|---|
protected AttestationConveyancePreference |
attestationPreference |
protected AuthenticatorSelectionCriteria |
authenticatorSelection |
protected byte[] |
challenge |
protected java.lang.String |
displayName |
protected java.util.List<PublicKeyCredentialDescriptor> |
excludeCredentials |
protected java.util.List<PublicKeyCredentialParameters> |
pubKeyCredParams |
protected java.lang.String |
relyingPartyId |
protected java.lang.String |
relyingPartyName |
protected boolean |
requireResidentKey |
protected java.lang.Double |
timeout |
protected java.lang.String |
userId |
protected java.lang.String |
userName |
_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
|
protected void |
persist(android.content.Context context,
PublicKeyCredentialSource source)
Persist the
PublicKeyCredentialSource |
void |
register(android.content.Context context,
FragmentManager fragmentManager,
WebAuthnListener listener)
Perform WebAuthn Registration
|
getCredentials, getRelyingPartyId, onWebAuthnExceptionprotected final java.lang.String relyingPartyName
protected final AttestationConveyancePreference attestationPreference
protected final java.lang.String displayName
protected final java.lang.String relyingPartyId
protected final java.lang.String userName
protected final AuthenticatorSelectionCriteria authenticatorSelection
protected final boolean requireResidentKey
protected final java.lang.String userId
protected final java.lang.Double timeout
protected final java.util.List<PublicKeyCredentialDescriptor> excludeCredentials
protected final java.util.List<PublicKeyCredentialParameters> pubKeyCredParams
protected final byte[] challenge
public 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 Jsonprotected <any> getRegisterPendingIntent(Fido2ApiClient fido2ApiClient,
PublicKeyCredentialCreationOptions options)
public 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 void persist(android.content.Context context,
PublicKeyCredentialSource source)
PublicKeyCredentialSourcecontext - The Application contextsource - The PublicKeyCredentialSource to persist