create

fun create(statusListCredentialId: String, issuer: String, statusPurpose: StatusPurpose, issuedCredentials: Iterable<VerifiableCredential>): VerifiableCredential

Create a StatusListCredential with a specific purpose, e.g., for revocation.

Return

A VerifiableCredential instance.

Parameters

statusListCredentialId

The id used for the resolvable path to the status list credential String.

issuer

The issuer URI of the credential, as a String.

statusPurpose

The status purpose of the status list cred, eg: revocation, as a StatusPurpose.

issuedCredentials

The credentials to be included in the status list credential, eg: revoked credentials, list of type VerifiableCredential.

Throws

If the status list credential cannot be created. Example:

val statusListCredential = StatusListCredential.create("http://example.com/statuslistcred/id123", "http://example.com/issuers/1", StatusPurpose.REVOCATION, listOf(vc1,vc2))