Code example for SecureRandom

Methods: nextInt

0
 
			// Sets the key Manager to use X.509 protocol 
			kmf = KeyManagerFactory.getInstance("SunX509");
			kmf.init(serverKeyStore, pwd.toCharArray());
 
			secureRandom = new SecureRandom();
			secureRandom.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
			throw new TransportException(e.getMessage());
		} 
	} 
 
	/** 
	 * Load the keystore in memory 
	 *  
	 * @param serverkeyfile 
	 * @param password 
	 * @throws GeneralSecurityException 
	 * @throws TransportException 
Contextual code suggestions in your IDE  Get Codota for Java