public final class PreviewRegistry extends 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(
    @NonNull List<@NonNull DigitalCredentialEntry> credentialEntries,
    @NonNull String id
)

Inherited methods

From androidx.credentials.registry.provider.RegisterCredentialsRequest
final @NonNull byte[]

the credentials to register

final @NonNull String

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

final @NonNull byte[]

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

final @NonNull String

the type of the credentials being registered

Public constructors

PreviewRegistry

public PreviewRegistry(
    @NonNull List<@NonNull DigitalCredentialEntry> credentialEntries,
    @NonNull String id
)
Parameters
@NonNull List<@NonNull DigitalCredentialEntry> credentialEntries

the list of entries to register

@NonNull String 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