Create a new plain-text username and password credential object. The supplied credential parameter will be internally duplicated.
The newly created credential object.
The username of the credential.
The password of the credential.
0 for success or an error code for failure