private Http signHttpRequest() { try { request.signRequest( duoAllIKeys.getAdminikeys().getIkey(), duoAllIKeys.getAdminikeys().getSkey()); } catch (Exception e) { } return request; }
private Response sendPreAuthRequest(String username) throws Exception { Http request = new Http("POST", host, "/auth/v2/preauth", 10); request.addParam("username", username); request.signRequest(ikey, skey); return request.executeHttpRequest(); }