Example of generating pseudo-random data in HSM.
- See Note on examples.
package doxy.examples;
import com.dinamonetworks.Dinamo;
import br.com.trueaccess.TacException;
public class GetRand {
static String ip_hsm = "127.0.0.1";
static String usr_admin = "master";
static String pass_admin = "12345678";
public static void main(String[] args) throws TacException {
Dinamo api = new Dinamo();
api.openSession(ip_hsm, usr_admin, pass_admin);
System.out.println("--> Generate random data");
byte[] rand_data = api.getRand(10);
api.closeSession();
System.out.println("The process ended sucessfully");
}
}