ProviderClearCredentialStateRequest


public final 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 constructors

constructs an instance of ProviderClearCredentialStateRequest

Public methods

static final @NonNull Bundle

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

static final @NonNull ProviderClearCredentialStateRequest

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

final @NonNull CallingAppInfo

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

Public constructors

ProviderClearCredentialStateRequest

Added in 1.2.0
public ProviderClearCredentialStateRequest(
    @NonNull CallingAppInfo callingAppInfo
)

constructs an instance of ProviderClearCredentialStateRequest

Parameters
@NonNull CallingAppInfo callingAppInfo

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

Public methods

asBundle

Added in 1.5.0-alpha05
public static final @NonNull Bundle asBundle(@NonNull ProviderClearCredentialStateRequest request)

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
public static final @NonNull ProviderClearCredentialStateRequest fromBundle(@NonNull Bundle bundle)

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.

getCallingAppInfo

Added in 1.2.0
public final @NonNull CallingAppInfo getCallingAppInfo()

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