public UserConfig fetch(UserConfig config){
  config.addCredentials(this);
  String xml=POST(this.url + "/check-user",config.toXML());
  Element root=parse(xml);
  if (root == null) {
    return null;
  }
  try {
    UserConfig user=new UserConfig();
    user.parseXML(root);
    return user;
  }
 catch (  Exception exception) {
    this.exception=SDKException.parseFailure(exception);
    throw this.exception;
  }
}

public UserConfig fetch ( UserConfig config ) { config . addCredentials ( this ) ; String xml = POST ( this . url + "/check-user" , config . toXML ( ) ) ; Element root = parse ( xml ) ; if ( root == null ) { return null ; } try { UserConfig user = new UserConfig ( ) ; user . parseXML ( root ) ; return user ; } catch ( Exception exception ) { this . exception = SDKException . parseFailure ( exception ) ; throw this . exception ; } }
fetch the user details for the user credentials . a token or password is required to validate the user .
