selectCredential
abstract suspend fun selectCredential(document: Document, requestedClaims: List<RequestedClaim>, keyAgreementPossible: List<EcCurve>, credential: Credential? = null): Credential?
Chooses a credential from a document.
Return
a Credential belonging to document that may be presented or null.
Parameters
document
the Document to pick a credential from.
requestedClaims
the requested claims.
keyAgreementPossible
if non-empty, a credential using Key Agreement may be returned provided its private key is one of the given curves.
credential
the candidate credential being considered, if known.