/************************************************
*
*           Tok3n wrapper client for APIv2
*           By Tok3n solucions SAPI CV
*           September 2014
* 
*   Basic usage:
* 
* 
* 
* 
*************************************************/

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;

public class client {



}

public class validation {

}
@@ -246,35 +246,34 @@
 import java.
-util.Collec
+io.IOExcep
 tion;%0Aimport
@@ -282,24 +282,92 @@
 ava.
-util.Coll
+io.InputStreamReader;%0Aimport java.io.OutputStream;%0Aimport java.net.HttpURLConn
 ection
-s
 ;%0Aim
@@ -380,98 +380,1442 @@
 ava.
-util.HashMap;%0Aimport java.util.List;%0A%0Apublic class client %7B%0A%0A%0A%0A%7D%0A%0Apublic class validation %7B%0A%0A%7D
+net.MalformedURLException;%0Aimport java.net.URL;%0Aimport java.io.BufferedReader;%0A%0A/*   Tok3n REST Client%0A * Wrapper generate a service URL %0A * send parameters to the Tok3n.js API%0A *%0A * @ Alexandro Colorado%0A */%0A%0Apublic class Tok3nClient %7B %0A%0A    public static void ValidateAuth(String%5B%5D args) throws ProtocolException, IOException %7B%0A%09try %7B%0A%0A%09     URL url= new URL(%22http://secure.tok3n.com/api_v2_iframe/tok3n.js%22);%0A%09     HttpURLConnection conn= (HttpURLConnection) url.openConnection();%0A%09     conn.setRequestMethod(%22POST%22);%0A%09     conn.setRequestProperty(%22Content-Type%22,%22application/x-www-form-urlencoded%22);%0A%09     conn.setRequestProperty(%22Content-Laguage%22, %22en-US%22);%0A%09     conn.setDoOutput(true);%0A%09     conn.setUseCaches(false);%0A%09     conn.setDoInput(true);%0A%09     DataOutputStream wr = new DataOutputStream (%0A%09%09     con.getOutputStream ());%0A%09     wr.writeBytes (urlParameters);%0A%09     wr.flush ();%0A%09     wr.close ();%0A%0A%09if ( conn.getResponseCode() != 200) %7B%0A%09    throw new RuntimeException(%22Failed: HTTP error code : %22 +%0A%09%09    conn.getResponseCode());%0A%09%7D%0A%0A%09BufferedReader br = new BufferedReader( new InputStreamReader(%0A%09%09    (conn.getInputStream())));%0A%0A%09String output;%0A%09System.out.println(%22Output from Server .... %5Cn%22);%0A%09while ((output = br.readLine()) != null) %7B%0A%09    System.out.println(output);%0A%09%7D%0A%09conn.disconnect();%0A    %7D catch (MalformedURLException e) %7B%0A%09e.printStackTrace();%0A    %7D catch (IOException e) %7B%0A%09e.printStackTrace();%0A    %7D%0A%7D%0A%7D%0A

Update tok3n_wrapper.java