R22 Confirm a credential is in place by its presence only
To confirm that a credential is in place, test only whether it is present, and its length where that helps, and report only that status.
Reason
A credential is protected strictly and kept from leaking (Art. II §1), and a test of presence needs nothing of its value. Presence does not show that a credential works, so a report of presence does not claim that it does (Art. VII §1).
Verification
The test prints whether the credential is set, and its length where that helps, never the value. The report says that presence was checked, not that the credential works; that is checked as rule 292 describes.
When unsure whether a way of testing could print the value, use one that plainly cannot.
Violated when a presence test prints any part of the value, or its report claims more than presence or does not say that only presence was checked.