selectCredential
open suspend override fun selectCredential(document: Document, requestedClaims: List<RequestedClaim>, keyAgreementPossible: List<EcCurve>, credential: Credential?, keyBindingRequired: Boolean): 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.
keyBindingRequired
true if the selected credential must be cryptographically bound to a key.