Home
last modified time | relevance | path

Searched refs:json (Results 1 – 24 of 24) sorted by relevance

/credentials/credentials-play-services-auth/src/androidTest/java/androidx/credentials/playservices/controllers/utils/
DCreatePublicKeyCredentialControllerTestUtils.kt24 import org.json.JSONArray
25 import org.json.JSONException
26 import org.json.JSONObject
221 val json = JSONObject() in createJsonObjectFromPublicKeyCredentialCreationOptions() constant
222 configureRpAndUser(options, json) in createJsonObjectFromPublicKeyCredentialCreationOptions()
223 configureChallengeParamsAndTimeout(options, json) in createJsonObjectFromPublicKeyCredentialCreationOptions()
224 configureDescriptors(options, json) in createJsonObjectFromPublicKeyCredentialCreationOptions()
225 configureSelectionCriteriaAndAttestation(options, json) in createJsonObjectFromPublicKeyCredentialCreationOptions()
227 return json in createJsonObjectFromPublicKeyCredentialCreationOptions()
232 json: JSONObject in configureSelectionCriteriaAndAttestation()
[all …]
/credentials/credentials/src/main/java/androidx/credentials/webauthn/
DPublicKeyCredentialRequestOptions.kt20 import org.json.JSONObject
24 val json: JSONObject constant
32 json = JSONObject(requestJson)
34 val challengeString = json.getString("challenge")
36 timeout = json.optLong("timeout", 0)
37 rpId = json.optString("rpId", "")
38 userVerification = json.optString("userVerification", "preferred")
DPublicKeyCredentialCreationOptions.kt21 import org.json.JSONObject
25 val json: JSONObject constant
38 json = JSONObject(requestJson)
39 val challengeString = json.getString("challenge")
41 val rpJson = json.getJSONObject("rp")
43 val rpUser = json.getJSONObject("user")
51 val pubKeyCredParamsJson = json.getJSONArray("pubKeyCredParams")
61 timeout = json.optLong("timeout", 0)
65 attestation = json.optString("attestation", "none")
DFidoPublicKeyCredential.kt20 import org.json.JSONObject
29 fun json(): String { in json() method in androidx.credentials.webauthn.FidoPublicKeyCredential
38 ret.put("response", response.json()) in json()
DAuthenticatorResponse.kt20 import org.json.JSONObject
26 fun json(): JSONObject method
DAuthenticatorAttestationResponse.kt21 import org.json.JSONArray
22 import org.json.JSONObject
92 override fun json(): JSONObject { in json() method in androidx.credentials.webauthn.AuthenticatorAttestationResponse
DAuthenticatorAssertionResponse.kt21 import org.json.JSONObject
83 override fun json(): JSONObject { in json() method in androidx.credentials.webauthn.AuthenticatorAssertionResponse
/credentials/credentials-play-services-auth/src/androidTest/java/androidx/credentials/playservices/controllers/identityauth/createpublickeycredential/
DPublicKeyCredentialControllerUtilityTest.kt26 import org.json.JSONArray in <lambda>()
27 import org.json.JSONException in <lambda>()
28 import org.json.JSONObject in <lambda>()
160 val json = JSONObject() in <lambda>() constant
169 json in <lambda>()
172 var response = json.getJSONObject(PublicKeyCredentialControllerUtility.JSON_KEY_RESPONSE) in <lambda>()
184 var json = in <lambda>() variable
205 var output = PublicKeyCredentialControllerUtility.convertJSON(json) in <lambda>()
221 var json = in <lambda>() variable
242 assertThrows<JSONException> { PublicKeyCredentialControllerUtility.convertJSON(json) } in <lambda>()
[all …]
DCredentialProviderCreatePublicKeyCredentialControllerTest.kt31 import org.json.JSONException in <lambda>()
32 import org.json.JSONObject in <lambda>()
DCredentialProviderCreatePublicKeyCredentialControllerJavaTest.java52 import org.json.JSONException;
53 import org.json.JSONObject;
/credentials/credentials/src/androidTest/java/androidx/credentials/webauthn/
DPublicKeyCredentialRequestOptionsTest.kt33 val json = in constructor() constant
42 var options = PublicKeyCredentialRequestOptions(json) in constructor()
53 val json = in constructor_optionalTimeout() constant
61 var options = PublicKeyCredentialRequestOptions(json) in constructor_optionalTimeout()
72 val json = in constructor_optionalRpId() constant
80 var options = PublicKeyCredentialRequestOptions(json) in constructor_optionalRpId()
91 val json = in constructor_optionalUserVerification() constant
99 var options = PublicKeyCredentialRequestOptions(json) in constructor_optionalUserVerification()
DAuthenticatorAttestationResponseTest.kt68 var json = response.json() in constructor() variable
71 assertThat(json.getString("attestationObject")) in constructor()
73 assertThat(json.getString("transports")).isEqualTo("[\"internal\",\"hybrid\"]") in constructor()
DAuthenticatorAssertionResponseTest.kt54 var json = response.json() in constructor() variable
57 assertThat(json.getString("authenticatorData")).isEqualTo(WebAuthnUtils.b64Encode(authData)) in constructor()
58 assertThat(json.getString("userHandle")).isEqualTo(WebAuthnUtils.b64Encode(rawUserHandle)) in constructor()
DPublicKeyCredentialCreationOptionsTest.kt33 val json = in constructor() constant
56 var options = PublicKeyCredentialCreationOptions(json) in constructor()
72 val json = in constructor_withoutAttestation() constant
94 var options = PublicKeyCredentialCreationOptions(json) in constructor_withoutAttestation()
DFidoPublicKeyCredentialTest.kt22 import org.json.JSONObject
33 override fun json(): JSONObject { in json() method in androidx.credentials.webauthn.FidoPublicKeyCredentialTest.TestAuthenticatorResponse
46 val output = JSONObject(cred.json()) in constructor()
/credentials/credentials-play-services-auth/src/main/java/androidx/credentials/playservices/controllers/identityauth/createpublickeycredential/
DPublicKeyCredentialControllerUtility.kt73 import org.json.JSONArray
74 import org.json.JSONException
75 import org.json.JSONObject
164 internal fun convertJSON(json: JSONObject): PublicKeyCredentialCreationOptions { in convertJSON()
167 parseRequiredChallengeAndUser(json, builder) in convertJSON()
168 parseRequiredRpAndParams(json, builder) in convertJSON()
170 parseOptionalWithRequiredDefaultsAttestationAndExcludeCredentials(json, builder) in convertJSON()
172 parseOptionalTimeout(json, builder) in convertJSON()
173 parseOptionalAuthenticatorSelection(json, builder) in convertJSON()
174 parseOptionalExtensions(json, builder) in convertJSON()
[all …]
DCredentialProviderCreatePublicKeyCredentialController.kt45 import org.json.JSONException in <lambda>()
/credentials/credentials/src/main/java/androidx/credentials/
DCreateRestoreCredentialRequest.kt22 import org.json.JSONObject
71 val json = JSONObject(requestJson) in getDisplayInfoFromJson() constant
72 val userJson = json.getJSONObject("user") in getDisplayInfoFromJson()
DCreatePublicKeyCredentialRequest.kt25 import org.json.JSONObject
219 val json = JSONObject(requestJson) in getRequestDisplayInfo() constant
220 val user = json.getJSONObject("user") in getRequestDisplayInfo()
/credentials/credentials/src/main/java/androidx/credentials/internal/
DRequestValidationHelper.kt20 import org.json.JSONObject
/credentials/credentials/src/main/java/androidx/credentials/provider/utils/
DRequestValidationUtil.kt20 import org.json.JSONObject
DPrivilegedApp.kt20 import org.json.JSONObject
/credentials/credentials-play-services-auth/src/androidTest/java/androidx/credentials/playservices/
DTestUtils.kt22 import org.json.JSONArray
23 import org.json.JSONObject
/credentials/credentials/src/main/java/androidx/credentials/provider/
DCallingAppInfo.kt31 import org.json.JSONException
32 import org.json.JSONObject