selectCredential

open suspend override fun selectCredential(document: Document?, request: Request, keyAgreementPossible: List<EcCurve>): 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 or null.

request

the request in question.

keyAgreementPossible

if non-empty, a credential using Key Agreement may be returned provided its private key is one of the given curves.