CreateCredentialRequest

public final class CreateCredentialRequest implements Parcelable


Data interface for creating or saving a user credential.

Summary

Public constructors

CreateCredentialRequest(
    @NonNull String type,
    @NonNull Bundle credentialData,
    @NonNull Bundle candidateQueryData,
    String origin,
    String requestJson,
    ResultReceiver resultReceiver
)

constructs an instance of CreateCredentialRequest

Public methods

final int
final @NonNull Bundle

the partial request data in Bundle format, that will be sent to the provider during the initial candidate query stage, which will not contain sensitive user information

final @NonNull Bundle

the complete request data in Bundle format, consisting of all the data that will be sent to the provider during the final credential creation stage

final String

the origin of the request, only settable by a browser

final String
final ResultReceiver
final @NonNull String

the type of the credential to be created or saved

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

Public constructors

CreateCredentialRequest

public CreateCredentialRequest(
    @NonNull String type,
    @NonNull Bundle credentialData,
    @NonNull Bundle candidateQueryData,
    String origin,
    String requestJson,
    ResultReceiver resultReceiver
)

constructs an instance of CreateCredentialRequest

Parameters
@NonNull String type

the type of the credential to be created or saved

@NonNull Bundle credentialData

the complete request data in Bundle format, consisting of all the data that will be sent to the provider during the final credential creation stage

@NonNull Bundle candidateQueryData

the partial request data in Bundle format, that will be sent to the provider during the initial candidate query stage, which will not contain sensitive user information

String origin

the origin of the request, only settable by a browser

Public methods

describeContents

public final int describeContents()

getCandidateQueryData

public final @NonNull Bundle getCandidateQueryData()

the partial request data in Bundle format, that will be sent to the provider during the initial candidate query stage, which will not contain sensitive user information

getCredentialData

public final @NonNull Bundle getCredentialData()

the complete request data in Bundle format, consisting of all the data that will be sent to the provider during the final credential creation stage

getOrigin

public final String getOrigin()

the origin of the request, only settable by a browser

getRequestJson

public final String getRequestJson()

getResultReceiver

public final ResultReceiver getResultReceiver()

getType

public final @NonNull String getType()

the type of the credential to be created or saved

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)