ProviderClearCredentialStateRequest


class ProviderClearCredentialStateRequest


Request class for clearing a user's credential state from the credential providers.

Throws
kotlin.NullPointerException

If callingAppInfo is null

Note : Credential providers are not expected to utilize the constructor in this class for any production flow. This constructor must only be used for testing purposes.

Summary

Public companion functions

Bundle

Helper method to convert the given request to a parcelable Bundle, in case the instance needs to be sent across a process.

ProviderClearCredentialStateRequest
fromBundle(bundle: Bundle)

Helper method to convert a Bundle retrieved through asBundle, back to an instance of ProviderClearCredentialStateRequest.

Public constructors

constructs an instance of ProviderClearCredentialStateRequest

Public properties

CallingAppInfo

info pertaining to the calling app that's making the request

Public companion functions

asBundle

Added in 1.5.0-alpha05
fun asBundle(request: ProviderClearCredentialStateRequest): Bundle

Helper method to convert the given request to a parcelable Bundle, in case the instance needs to be sent across a process. Consumers of this method should use fromBundle to reconstruct the class instance back from the bundle returned here.

fromBundle

Added in 1.5.0-alpha05
fun fromBundle(bundle: Bundle): ProviderClearCredentialStateRequest

Helper method to convert a Bundle retrieved through asBundle, back to an instance of ProviderClearCredentialStateRequest.

Throws IllegalArgumentException if the conversion fails. This means that the given bundle does not contain a ProviderCreateCredentialRequest. The bundle should be constructed and retrieved from asBundle itself and never be created from scratch to avoid the failure.

Public constructors

ProviderClearCredentialStateRequest

Added in 1.2.0
ProviderClearCredentialStateRequest(callingAppInfo: CallingAppInfo)

constructs an instance of ProviderClearCredentialStateRequest

Parameters
callingAppInfo: CallingAppInfo

info pertaining to the calling app that's making the request

Public properties

callingAppInfo

Added in 1.2.0
val callingAppInfoCallingAppInfo

info pertaining to the calling app that's making the request