BeginCreateCredentialRequest
public abstract class BeginCreateCredentialRequest
BeginCreateCustomCredentialRequest |
Base custom begin create request class for registering a credential. |
BeginCreatePasswordCredentialRequest |
Request to begin saving a password credential, received by the provider with a CredentialProviderBaseService.onBeginCreateCredentialRequest call. |
BeginCreatePublicKeyCredentialRequest |
Request to begin registering a public key credential. |
Abstract request class for beginning a create credential request.
This class is to be extended by structured create credential requests such as BeginCreatePasswordCredentialRequest.
Summary
Public constructors |
|---|
BeginCreateCredentialRequest( |
Public methods |
|
|---|---|
static final @NonNull Bundle |
asBundle(@NonNull BeginCreateCredentialRequest request)Helper method to convert the class to a parcelable |
static final BeginCreateCredentialRequest |
fromBundle(@NonNull Bundle bundle)Helper method to convert a |
final CallingAppInfo |
|
final @NonNull Bundle |
|
final @NonNull String |
getType() |
Public constructors
BeginCreateCredentialRequest
public BeginCreateCredentialRequest(
@NonNull String type,
@NonNull Bundle candidateQueryData,
CallingAppInfo callingAppInfo
)
Public methods
asBundle
public static final @NonNull Bundle asBundle(@NonNull BeginCreateCredentialRequest request)
Helper method to convert the class to a parcelable Bundle, in case the class 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
public static final BeginCreateCredentialRequest fromBundle(@NonNull Bundle bundle)
Helper method to convert a Bundle retrieved through asBundle, back to an instance of BeginCreateCredentialRequest.