class PreviewRegistry : DigitalCredentialRegistry


A registration request containing data that can serve the preview protocol based request.

The preview protocol is the example digital credential protocol widely used by test sites. You can view or test with it at digital-credentials.dev.

Summary

Public constructors

PreviewRegistry(
    credentialEntries: List<DigitalCredentialEntry>,
    id: String
)

Inherited properties

From androidx.credentials.registry.provider.RegisterCredentialsRequest
ByteArray

the credentials to register

String

the unique id that identifies this registry, such that it won't be overwritten by other different registries of the same type

ByteArray

the matcher wasm binary in bytes; the matcher will be interpreted and run in a safe and privacy-preserving sandbox upon an incoming request and it should output the qualified credentials given the credentials and the request; an invalid matcher (e.g. one that fails wasm interpretation or causes exceptions) will mean that your credentials will never be surfaced to the user

String

the type of the credentials being registered

Public constructors

PreviewRegistry

PreviewRegistry(
    credentialEntries: List<DigitalCredentialEntry>,
    id: String = DEFAULT_ID
)
Parameters
credentialEntries: List<DigitalCredentialEntry>

the list of entries to register

id: String = DEFAULT_ID

the provider unique id that identifies this registry, such that it won't be overwritten by other different registries of the same type; default to a preview specific ID which should be used unless you need to maintain multiple preview protocol based registries at the same time