Sealed-result form of getKeyId: the ID of the key did issues with (first assertionMethod, else first authentication, else first verification method not reserved for keyAgreement). Never throws for domain failures; coroutine cancellation is rethrown.
assertionMethod
authentication
keyAgreement