findCredential

suspend fun findCredential(domain: String, now: Instant?): Credential?

Finds a suitable certified credential to use.

Return

A credential in the domain or null if none was found.

Parameters

domain

The domain to pick the credential from.

now

Pass current time to ensure that the selected slot's validity period or null to not consider validity times.