RegistrationRequest

class RegistrationRequest : Parcelable


A registration request to store credential metadata and matcher logic.

Summary

Constants

const String

Public companion properties

Parcelable.Creator<RegistrationRequest>

Public constructors

RegistrationRequest(
    credentials: ByteArray,
    matcher: ByteArray,
    type: String,
    requestType: String,
    protocolTypes: List<String>
)
RegistrationRequest(
    credentials: ByteArray,
    matcher: ByteArray,
    type: String,
    requestType: String,
    protocolTypes: List<String>,
    id: String,
    fulfillmentActionName: String
)

constructs an instance of RegistrationRequest

Public functions

final Int
open Unit
writeToParcel(dest: Parcel, flags: Int)

Public properties

ByteArray

the credential information as a ByteArray blob

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.GET_CREDENTIAL" will be used

String

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

ByteArray

the matcher for the credential info, also as a ByteArray blob

List<String>

This property is deprecated. Deprecated.

String

This property is deprecated. Deprecated.

String

the type of credentials matching the given registry data

Constants

TAG

const val TAGString

Public companion properties

Public constructors

RegistrationRequest

RegistrationRequest(
    credentials: ByteArray,
    matcher: ByteArray,
    type: String,
    requestType: String,
    protocolTypes: List<String>
)

RegistrationRequest

RegistrationRequest(
    credentials: ByteArray,
    matcher: ByteArray,
    type: String = "",
    requestType: String = "",
    protocolTypes: List<String> = emptyList(),
    id: String = "",
    fulfillmentActionName: String = ""
)

constructs an instance of RegistrationRequest

Parameters
credentials: ByteArray

the credential information as a ByteArray blob

matcher: ByteArray

the matcher for the credential info, also as a ByteArray blob

type: String = ""

the type of credentials matching the given registry data

requestType: String = ""

deprecated

protocolTypes: List<String> = emptyList()

deprecated

id: String = ""

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

fulfillmentActionName: 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.GET_CREDENTIAL" will be used

Public functions

describeContents

final fun describeContents(): Int

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

credentials

val credentialsByteArray

the credential information as a ByteArray blob

fulfillmentActionName

val fulfillmentActionNameString

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.GET_CREDENTIAL" will be used

id

val idString

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

matcher

val matcherByteArray

the matcher for the credential info, also as a ByteArray blob

protocolTypes

val protocolTypesList<String>

deprecated

requestType

val requestTypeString

deprecated

type

val typeString

the type of credentials matching the given registry data