I looked at the documentation of that API, but I could not confirm it allows authorization via user name and password.
It seems to support the regular OAuth flow that this class supports. Take a look here and let me know if you are not able to make it work for you.
developer.xero.com/documentation/ge ...