InMemorySubjectCredentialStore

Constructors

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: List<String>?, requiredAttributeNames: List<String>?): KmmResult.Success<List<SubjectCredentialStore.StoreEntry>>

Return all stored credentials. Selective Disclosure: Specify list of attribute names in requiredAttributeNames.

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(vc: VerifiableCredentialJws, vcSerialized: String)

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