Code example for KeyPairGenerator

Methods: initialize

0
	/* Here initialize any variables that will be necessary later */ 
	private SecurityFacade() { 	 
		 
		try { 
			kpg =  KeyPairGenerator.getInstance("RSA") ;
			kpg.initialize(keyLength) ; 
		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
		}  
	} 
 
	 
	public static SecurityFacade getInstance() {  
		if (instance == null ) { 
			instance = new SecurityFacade() ; 
		} 
		return instance ; 
	} 
	 
	private  byte[] getByteArray (Object obj) {
		byte[] bytes = null;