Code example for RSAPublicKeySpec

Methods: getModulusgetPublicExponent

0
		} catch (InvalidKeySpecException e) {
			return null ;  
			//e.printStackTrace(); 
		}  
		 
		modulus = pubKSpec.getModulus() ; 
		exp = pubKSpec.getPublicExponent() ; 
		 
		 
		byte[] modulusBArray = getByteArray(modulus);
		byte[] expBArray = getByteArray(exp);
 
		String modString = null ; 
		String expString = null ;
		 
		try { 
			//modString = new String(modulusBArray,"UTF-8"); 
			modString = new String(modulusBArray);
		} catch (Exception e) {
			//e.printStackTrace(); 
			return null ;