Android.Service.Credentials Namespace

Provides the service, requests, responses, and entries used by Android credential providers.

Classes

Name Description
Action

An action defined by the provider that intents into the provider's app for specific user actions.

Action.InterfaceConsts

Provides the parcelable interface constants exposed by Action.

BeginCreateCredentialRequest

Request for beginning a create credential request.

BeginCreateCredentialRequest.InterfaceConsts

Provides the parcelable interface constants exposed by BeginCreateCredentialRequest.

BeginCreateCredentialResponse

Response to a BeginCreateCredentialRequest.

BeginCreateCredentialResponse.Builder

A builder for BeginCreateCredentialResponse

BeginCreateCredentialResponse.InterfaceConsts

Provides the parcelable interface constants exposed by BeginCreateCredentialResponse.

BeginGetCredentialOption

A specific type of credential request to be sent to the provider during the query phase of a get flow.

BeginGetCredentialOption.InterfaceConsts

Provides the parcelable interface constants exposed by BeginGetCredentialOption.

BeginGetCredentialRequest

Query stage request for getting user's credentials from a given credential provider.

BeginGetCredentialRequest.Builder

Builder for BeginGetCredentialRequest.

BeginGetCredentialRequest.InterfaceConsts

Provides the parcelable interface constants exposed by BeginGetCredentialRequest.

BeginGetCredentialResponse

Response from a credential provider, containing credential entries and other associated data to be shown on the account selector UI.

BeginGetCredentialResponse.Builder

Builds an instance of BeginGetCredentialResponse.

BeginGetCredentialResponse.InterfaceConsts

Provides the parcelable interface constants exposed by BeginGetCredentialResponse.

CallingAppInfo

Information pertaining to the calling application, including the package name and a list of app signatures.

CallingAppInfo.InterfaceConsts

Provides the parcelable interface constants exposed by CallingAppInfo.

ClearCredentialStateRequest

A request class for clearing a user's credential state.

ClearCredentialStateRequest.InterfaceConsts

Provides the parcelable interface constants exposed by ClearCredentialStateRequest.

CreateCredentialRequest

Request for creating a credential.

CreateCredentialRequest.InterfaceConsts

Provides the parcelable interface constants exposed by CreateCredentialRequest.

CreateEntry

An entry to be shown on the UI.

CreateEntry.InterfaceConsts

Provides the parcelable interface constants exposed by CreateEntry.

CredentialEntry

A credential entry that is to be displayed on the account selector that is presented to the user.

CredentialEntry.InterfaceConsts

Provides the parcelable interface constants exposed by CredentialEntry.

CredentialProviderService

Service to be extended by credential providers, in order to return user credentials to the framework.

GetCredentialRequest

Request for getting user's credential from a given credential provider.

GetCredentialRequest.InterfaceConsts

Provides the parcelable interface constants exposed by GetCredentialRequest.

RemoteEntry

An entry to be shown on the UI.

RemoteEntry.InterfaceConsts

Provides the parcelable interface constants exposed by RemoteEntry.

Remarks

Derive from CredentialProviderService to handle requests to create credentials, find available credentials, and clear credential state. Begin requests let the provider return entries for the system selector. When the user selects an entry, its pending intent starts the provider activity for the next stage.

BeginGetCredentialOption contains candidate query data used to list entries. The later GetCredentialRequest contains the options needed to retrieve the selected credential. Do not treat candidate query data as the complete retrieval request.

Implementation details in this namespace are based on the Android 16 credential provider sources. The nested InterfaceConsts classes are .NET projections produced by the Java.Interop binding generator.