-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8394b7b
commit 8d3431b
Showing
5 changed files
with
97 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
app/src/main/java/com/dashlane/dashlanepasskeydemo/model/CreatePasskeyRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.dashlane.dashlanepasskeydemo.model | ||
|
||
data class CreatePasskeyRequest( | ||
val challenge: String, | ||
val rp: Rp, | ||
val user: User, | ||
val pubKeyCredParams: List<PubKeyCredParams>, | ||
val timeout: Long, | ||
val attestation: String, | ||
val excludeCredentials: List<Any>, | ||
val authenticatorSelection: AuthenticatorSelection | ||
) { | ||
data class Rp( | ||
val name: String, | ||
val id: String | ||
) | ||
|
||
data class User( | ||
val id: String, | ||
val name: String, | ||
val displayName: String | ||
) | ||
|
||
data class PubKeyCredParams( | ||
val type: String, | ||
val alg: Int | ||
) | ||
|
||
data class AuthenticatorSelection( | ||
val authenticatorAttachment: String, | ||
val requireResidentKey: Boolean, | ||
val residentKey: String, | ||
val userVerification: String | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/dashlane/dashlanepasskeydemo/model/GetPasskeyRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.dashlane.dashlanepasskeydemo.model | ||
|
||
data class GetPasskeyRequest( | ||
val challenge: String, | ||
val allowCredentials: List<AllowCredentials>, | ||
val timeout: Long, | ||
val userVerification: String, | ||
val rpId: String, | ||
) { | ||
data class AllowCredentials( | ||
val id: String, | ||
val transports: List<String>, | ||
val type: String, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters