}
public void authenticate() {
if (exchangeSpecification.getUserName() == null || exchangeSpecification.getUserName() == null || exchangeSpecification.getUserName() == null) {
throw new ExchangeException("Username (UserID), Cookie, and Password cannot be null");
}
try {
Long.valueOf(exchangeSpecification.getUserName());
} catch (NumberFormatException e) {
throw new ExchangeException("Username (UserID) must be the string representation of a integer or long value.");
}
RequestFactory.CoinfloorAuthenticationRequest authVars =
new RequestFactory.CoinfloorAuthenticationRequest(Long.valueOf(exchangeSpecification.getUserName()), (String) exchangeSpecification.getExchangeSpecificParametersItem("cookie"),
exchangeSpecification.getPassword(), exchangeEventListener.getServerNonce());