SignalCredentialStateRequest


abstract class SignalCredentialStateRequest

Known direct subclasses
SignalAllAcceptedCredentialIdsRequest

A request to signal the complete list of public key credentials ids for a given user.

SignalCurrentUserDetailsRequest

A request to signal the user's current name and display name.

SignalUnknownCredentialRequest

A request to signal that a credential ID was not recognized by the relying party.


Base request class for sending credential state signals to providers.

An application can construct a subtype request and call CredentialManager.signalCredentialState to propagate a signal credential state request.

Summary

Public companion functions

SignalCredentialStateRequest
createFrom(requestType: String, requestJson: String, origin: String?)

Public properties

String?

the origin of a different application if the request is being made on behalf of that application (Note: for API level >=34, setting a non-null value for this parameter will throw a SecurityException if android.permission.CREDENTIAL_MANAGER_SET_ORIGIN is not present)

Bundle

the bundle to contain the request json and any additional info

String

the signal request data in the expected json format

String

the request type representing one of SignalAllAcceptedCredentialIdsRequest, SignalCurrentUserDetailsRequest and SignalUnknownCredentialRequest)

Public companion functions

createFrom

Added in 1.6.0-alpha05
fun createFrom(requestType: String, requestJson: String, origin: String?): SignalCredentialStateRequest

Public properties

origin

Added in 1.6.0-alpha05
val originString?

the origin of a different application if the request is being made on behalf of that application (Note: for API level >=34, setting a non-null value for this parameter will throw a SecurityException if android.permission.CREDENTIAL_MANAGER_SET_ORIGIN is not present)

requestData

Added in 1.6.0-alpha05
val requestDataBundle

the bundle to contain the request json and any additional info

requestJson

Added in 1.6.0-alpha05
val requestJsonString

the signal request data in the expected json format