CredentialCollections

Narrowed capability interface for wallets that support credential collections.

Wallets may implement either CredentialCollections, CredentialTagging, or the combined CredentialOrganization, giving callers the ability to depend only on the capability they need.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun addToCollection(credentialId: String, collectionId: String): Boolean

Add a credential to a collection.

Link copied to clipboard
abstract suspend fun createCollection(name: String, description: String? = null): String

Create a new credential collection.

Link copied to clipboard
abstract suspend fun deleteCollection(collectionId: String): Boolean

Delete a collection.

Link copied to clipboard
abstract suspend fun getCollection(collectionId: String): CredentialCollection?

Get a collection by ID.

Link copied to clipboard
abstract suspend fun getCredentialsInCollection(collectionId: String): List<VerifiableCredential>

Get all credentials in a collection.

Link copied to clipboard
abstract suspend fun listCollections(): List<CredentialCollection>

List all collections.

Link copied to clipboard
abstract suspend fun removeFromCollection(credentialId: String, collectionId: String): Boolean

Remove a credential from a collection.