Skip to content

Instantly share code, notes, and snippets.

@paulspencerwilliams
Created November 14, 2014 14:21
Show Gist options
  • Save paulspencerwilliams/042c8df33265a3df757f to your computer and use it in GitHub Desktop.
Save paulspencerwilliams/042c8df33265a3df757f to your computer and use it in GitHub Desktop.
ConnectionConfiguration connectionConfig = new ConnectionConfiguration(XMPP_HOSTNAME, 5222);
connectionConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.required);
connectionConfig.setKeystorePath("/Users/will/src/auction_sniper_jruby/cacerts.jks");
connectionConfig.setKeystorePath("/Users/will/src/auction_sniper_jruby/ca-bundle.crt");
this.connection = new XMPPTCPConnection(connectionConfig);
this.connection.connect();
this.connection.login(format(ITEM_ID_AS_LOGIN, itemId), AUCTION_PASSWORD, AUCTION_RESOURCE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment