Return the username associated with a credential object.
object to check
the credential username, or NULL if not applicable