Пример #1
0
  private Http signHttpRequest() {

    try {
      request.signRequest(
          duoAllIKeys.getAdminikeys().getIkey(), duoAllIKeys.getAdminikeys().getSkey());

    } catch (Exception e) {
    }

    return request;
  }
Пример #2
0
 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();
 }