class SelectedCredentialSet


Contains information about the user selection result on the Credential Manager UI.

During the androidx.credentials.CredentialManager.getCredential invocation, the user will be presented a Credential Manager selector & permission UI that displays the available credentials to choose from. The selector may display credential options in two dimensions. First, it may display a set of options; then each credential set can contain a list of credentials that must be all returned at once.

For example, the user could be presented options of { {cred1, cred2, cred3}, {cred1, cred4}, {cred5} } and may choose to use the {cred1, cred4} credential set. In that case, the selected provider will be invoked and be given a SelectedCredentialSet containing the corresponding setId and credentialIds for each individual credential in the set.

Throws
kotlin.IllegalArgumentException

if credentials is empty

Summary

Public constructors

SelectedCredentialSet(
    credentialSetId: String,
    credentials: List<SelectedCredential>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

String

the id of the selected credential set; the credentialSetId is generated by the provider's matcher (see RegisterCredentialsRequest.matcher) and therefore its format is specific to the matcher

List<SelectedCredential>

the non-empty list of credentials in this selected credential set; the provider must return all credentials to the caller

Public constructors

SelectedCredentialSet

Added in 1.0.0-alpha02
SelectedCredentialSet(
    credentialSetId: String,
    credentials: List<SelectedCredential>
)
Parameters
credentialSetId: String

the id of the selected credential set; the credentialSetId is generated by the provider's matcher (see RegisterCredentialsRequest.matcher) and therefore its format is specific to the matcher

credentials: List<SelectedCredential>

the non-empty list of credentials in this selected credential set; the provider must return all credentials to the caller

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

credentialSetId

Added in 1.0.0-alpha02
val credentialSetIdString

the id of the selected credential set; the credentialSetId is generated by the provider's matcher (see RegisterCredentialsRequest.matcher) and therefore its format is specific to the matcher

credentials

Added in 1.0.0-alpha02
val credentialsList<SelectedCredential>

the non-empty list of credentials in this selected credential set; the provider must return all credentials to the caller