validateKeyIdWithResult

Validates key ID and returns a normalized error message.

Return

Pair of (isValid: Boolean, errorMessage: String?)

Parameters

keyId

The key ID to validate