class ExportEntry


Each export entry corresponds to an entry in the provider selector UI that the user can choose from.

ExportEntry serves two purposes:

  1. Contain display data to be shown on the selector UI.

  2. Contain fields that can be used to match an incoming ImportCredentialsRequest. By default, the supportedCredentialTypes field will be used to match against the request.

Summary

Public constructors

ExportEntry(
    id: String,
    accountDisplayName: CharSequence?,
    userDisplayName: CharSequence,
    icon: Bitmap,
    supportedCredentialTypes: Set<String>
)

Public properties

CharSequence?

the account display name of the entry

Bitmap

the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display

String

the secret id that is used to identify the export entry.

Set<String>

the credential types that this entry supports.

CharSequence

the user display name of the entry

Public constructors

ExportEntry

Added in 1.0.0-alpha03
ExportEntry(
    id: String,
    accountDisplayName: CharSequence?,
    userDisplayName: CharSequence,
    icon: Bitmap,
    supportedCredentialTypes: Set<String>
)
Parameters
id: String

the secret id that is used to identify the export entry. This should be randomly generated and stored. When the provider's credential transfer activity gets launched, the provider should verify that the ProviderImportCredentialsRequest contains the pre-registered id.

accountDisplayName: CharSequence?

the account display name of the entry

userDisplayName: CharSequence

the user display name of the entry

icon: Bitmap

the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display

supportedCredentialTypes: Set<String>

the credential types that this entry supports. By default, this field will be used to filter whether the entry will be displayed for an incoming import request. The values include, but not limited to, the constants in CredentialTypes

Public properties

accountDisplayName

Added in 1.0.0-alpha03
val accountDisplayNameCharSequence?

the account display name of the entry

icon

Added in 1.0.0-alpha03
val iconBitmap

the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display

id

Added in 1.0.0-alpha03
val idString

the secret id that is used to identify the export entry. This should be randomly generated and stored. When the provider's credential transfer activity gets launched, the provider should verify that the ProviderImportCredentialsRequest contains the pre-registered id.

supportedCredentialTypes

Added in 1.0.0-alpha03
val supportedCredentialTypesSet<String>

the credential types that this entry supports. By default, this field will be used to filter whether the entry will be displayed for an incoming import request. The values include, but not limited to, the constants in CredentialTypes

userDisplayName

Added in 1.0.0-alpha03
val userDisplayNameCharSequence

the user display name of the entry