RegisterCredentialsRequest


abstract class RegisterCredentialsRequest

Known direct subclasses
DigitalCredentialRegistry

A request to register digital credentials with Credential Manager.

Known indirect subclasses
PreviewRegistry

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


A request to register credentials with Credential Manager.

Summary

Public constructors

RegisterCredentialsRequest(
    type: String,
    id: String,
    credentials: ByteArray,
    matcher: ByteArray
)

Public properties

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

RegisterCredentialsRequest

Added in 1.0.0-alpha01
RegisterCredentialsRequest(
    type: String,
    id: String,
    credentials: ByteArray,
    matcher: ByteArray
)

Public properties

credentials

Added in 1.0.0-alpha01
val credentialsByteArray

the credentials to register

id

Added in 1.0.0-alpha01
val idString

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

matcher

Added in 1.0.0-alpha01
val matcherByteArray

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

type

Added in 1.0.0-alpha01
val typeString

the type of the credentials being registered