Avoid recursively calling self; instead call outer class's getCredentials.