public boolean isLoginSet(){
  return (username != null && (password != null && !username.equals("") && !password.equals(""))) || oauth;
}

public boolean isLoginSet ( ) { return ( username != null && ( password != null && ! username . equals ( "" ) && ! password . equals ( "" ) ) ) || oauth ; }
return true if either login / pass is set or if oauth is enabled
