SimplePresentmentSource
class SimplePresentmentSource(val documentStore: DocumentStore, val documentTypeRepository: DocumentTypeRepository, val readerTrustManager: TrustManager, val zkSystemRepository: ZkSystemRepository? = null, val preferSignatureToKeyAgreement: Boolean = true, val domainMdocSignature: String? = null, val domainMdocKeyAgreement: String? = null, val domainKeylessSdJwt: String? = null, val domainKeyBoundSdJwt: String? = null) : PresentmentSource
An implementation of PresentmentSource for when using ISO mdoc and IETF SD-JWT VC credentials.
Constructors
Link copied to clipboard
constructor(documentStore: DocumentStore, documentTypeRepository: DocumentTypeRepository, readerTrustManager: TrustManager, zkSystemRepository: ZkSystemRepository? = null, preferSignatureToKeyAgreement: Boolean = true, domainMdocSignature: String? = null, domainMdocKeyAgreement: String? = null, domainKeylessSdJwt: String? = null, domainKeyBoundSdJwt: String? = 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 domain to use for domainKeyBoundSdJwt instances or null
.
Link copied to clipboard
the domain to use for KeylessSdJwtVcCredential instances or null
.
Link copied to clipboard
the domain to use for MdocCredential instances using mdoc MAC authentication or null
.
Link copied to clipboard
the domain to use for MdocCredential instances using mdoc ECDSA authentication or null
.
Link copied to clipboard
whether to use Key Agreement when possible (ISO mdoc only).
Link copied to clipboard
the TrustManager used to determine if a reader is trusted.
Link copied to clipboard
Functions
Link copied to clipboard
open suspend override fun selectCredential(document: Document?, request: Request, keyAgreementPossible: List<EcCurve>): Credential?
Chooses a credential from a document.