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