@Test public void testEncrypt() throws Exception { String inputFile = XMLEncryptorTest.class.getResource("/" + INPUT_FILE) .getPath(); String outputFile = new File(inputFile).getParent() + File.separator + OUTPUT_FILE; XMLEncryptor.encrypt(inputFile, outputFile); }
public void encrypt(String inputFile, String outputFile) throws Exception { File ipFile = new File(inputFile); File opFile = new File(outputFile); SecurityUtil.print(ipFile); encMgr.encrypt(ipFile, opFile); SecurityUtil.print(opFile); }
XMLEncryptor { public void encrypt(String inputFile, String outputFile) throws Exception { File ipFile = new File(inputFile); File opFile = new File(outputFile); SecurityUtil.print(ipFile); encMgr.encrypt(ipFile, opFile); SecurityUtil.print(opFile); } }
XMLEncryptor { public void encrypt(String inputFile, String outputFile) throws Exception { File ipFile = new File(inputFile); File opFile = new File(outputFile); SecurityUtil.print(ipFile); encMgr.encrypt(ipFile, opFile); SecurityUtil.print(opFile); }  }
XMLEncryptor { public void encrypt(String inputFile, String outputFile) throws Exception { File ipFile = new File(inputFile); File opFile = new File(outputFile); SecurityUtil.print(ipFile); encMgr.encrypt(ipFile, opFile); SecurityUtil.print(opFile); }  void encrypt(String inputFile, String outputFile); void decrypt(String inputFile); }
XMLEncryptor { public void encrypt(String inputFile, String outputFile) throws Exception { File ipFile = new File(inputFile); File opFile = new File(outputFile); SecurityUtil.print(ipFile); encMgr.encrypt(ipFile, opFile); SecurityUtil.print(opFile); }  void encrypt(String inputFile, String outputFile); void decrypt(String inputFile);  }