CredentialLifecycle

Credential lifecycle management capabilities.

Optional interface for wallets that support archiving and refreshing credentials.

Example Usage:

val wallet: Wallet = createWallet()

if (wallet is CredentialLifecycle) {
// Archive old credential
wallet.archive(credentialId)

// Get archived credentials
val archived = wallet.getArchived()

// Refresh credential
val refreshed = wallet.refreshCredential(credentialId)
}

Functions

Link copied to clipboard
abstract suspend fun archive(credentialId: String): Boolean

Archive a credential.

Link copied to clipboard
abstract suspend fun getArchived(): List<VerifiableCredential>

Get all archived credentials.

Link copied to clipboard
abstract suspend fun refreshCredential(credentialId: String): VerifiableCredential?

Refresh a credential.

Link copied to clipboard
abstract suspend fun unarchive(credentialId: String): Boolean

Unarchive a credential.