RegisterCreationOptionsRequest

public final class RegisterCreationOptionsRequest implements Parcelable


A registration request to store provision / creation candidates' metadata and matcher logic.

Summary

Public constructors

RegisterCreationOptionsRequest(
    @NonNull byte[] createOptions,
    @NonNull byte[] matcher,
    @NonNull String type,
    @NonNull String id,
    @NonNull String fulfillmentActionName
)

constructs an instance of RegisterCreationOptionsRequest

Public methods

final int
final @NonNull byte[]

the creation candidates data used for display and matching purpose, as a ByteArray blob

final @NonNull String

optionally specify a different intent action to be used for launching the fulfillment activity when one of the registered credentials is selected by the user; otherwise, the default action "androidx.credentials.registry.provider.action.CREATE_CREDENTIAL" will be used

final @NonNull String

the id of the given registry data, so as not to overwrite existing data of different id

final @NonNull byte[]

the matcher for the credential info, as a ByteArray blob

final @NonNull String

the type of the creation options registered, matching the CreateCredentialRequest.type that this registry can handle

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

Public constructors

RegisterCreationOptionsRequest

public RegisterCreationOptionsRequest(
    @NonNull byte[] createOptions,
    @NonNull byte[] matcher,
    @NonNull String type,
    @NonNull String id,
    @NonNull String fulfillmentActionName
)

constructs an instance of RegisterCreationOptionsRequest

Parameters
@NonNull byte[] createOptions

the creation candidates data used for display and matching purpose, as a ByteArray blob

@NonNull byte[] matcher

the matcher for the credential info, as a ByteArray blob

@NonNull String type

the type of the creation options registered, matching the CreateCredentialRequest.type that this registry can handle

@NonNull String id

the id of the given registry data, so as not to overwrite existing data of different id

@NonNull String fulfillmentActionName

optionally specify a different intent action to be used for launching the fulfillment activity when one of the registered credentials is selected by the user; otherwise, the default action "androidx.credentials.registry.provider.action.CREATE_CREDENTIAL" will be used

Public methods

describeContents

public final int describeContents()

getCreateOptions

public final @NonNull byte[] getCreateOptions()

the creation candidates data used for display and matching purpose, as a ByteArray blob

getFulfillmentActionName

public final @NonNull String getFulfillmentActionName()

optionally specify a different intent action to be used for launching the fulfillment activity when one of the registered credentials is selected by the user; otherwise, the default action "androidx.credentials.registry.provider.action.CREATE_CREDENTIAL" will be used

getId

public final @NonNull String getId()

the id of the given registry data, so as not to overwrite existing data of different id

getMatcher

public final @NonNull byte[] getMatcher()

the matcher for the credential info, as a ByteArray blob

getType

public final @NonNull String getType()

the type of the creation options registered, matching the CreateCredentialRequest.type that this registry can handle

writeToParcel

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