InMemorySubjectCredentialStore

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun getAttachment(name: String): KmmResult<ByteArray>

Return attachments filtered by name

open suspend override fun getAttachment(name: String, vcId: String): KmmResult<ByteArray>

Return attachments filtered by name and vcId

Link copied to clipboard
open suspend override fun getCredentials(requiredAttributeTypes: Collection<String>?): KmmResult<List<SubjectCredentialStore.StoreEntry>>

Return all stored credentials. Selective Disclosure: Specify list of attribute types in requiredAttributeTypes.

Link copied to clipboard
open suspend override fun storeAttachment(name: String, data: ByteArray, vcId: String)

Implementation should store the attachment in a secure way. Note that the data has not been validated since it may not be signed.

Link copied to clipboard
open suspend override fun storeCredential(issuerSigned: IssuerSigned, scheme: ConstantIndex.CredentialScheme)
open suspend override fun storeCredential(vc: VerifiableCredentialJws, vcSerialized: String, scheme: ConstantIndex.CredentialScheme)
open suspend override fun storeCredential(vc: VerifiableCredentialSdJwt, vcSerialized: String, disclosures: Map<String, SelectiveDisclosureItem?>, scheme: ConstantIndex.CredentialScheme)

Implementations should store the passed credential in a secure way. Passed credentials have been validated before.