PresentmentSource
abstract class PresentmentSource(val documentStore: DocumentStore, val documentTypeRepository: DocumentTypeRepository, val readerTrustManager: TrustManager, val zkSystemRepository: ZkSystemRepository? = null)
The source of truth used for credential presentment.
Inheritors
Constructors
Link copied to clipboard
constructor(documentStore: DocumentStore, documentTypeRepository: DocumentTypeRepository, readerTrustManager: TrustManager, zkSystemRepository: ZkSystemRepository? = null)
Properties
Link copied to clipboard
the DocumentStore which holds credentials that can be presented.
Link copied to clipboard
a DocumentTypeRepository which holds metadata for document types.
Link copied to clipboard
the TrustManager used to determine if a reader is trusted.
Link copied to clipboard
Functions
Link copied to clipboard
abstract suspend fun selectCredential(document: Document?, request: Request, keyAgreementPossible: List<EcCurve>): Credential?
Chooses a credential from a document.