@Test public void testDecrypt() throws Exception { System.out.println("testDecrypt"); String str = "test"; AES128Cryptor instance = new AES128Cryptor(); String expResult = "test"; String result = instance.decrypt(instance.encrypt(str)); assertEquals(expResult, result); }
@Override public String decrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.decrypt(str); }
AES128Cryptor extends AESCryptorAbstract { @Override public String decrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.decrypt(str); } }
AES128Cryptor extends AESCryptorAbstract { @Override public String decrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.decrypt(str); } AES128Cryptor(); }
AES128Cryptor extends AESCryptorAbstract { @Override public String decrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.decrypt(str); } AES128Cryptor(); @Override String encrypt(String str); @Override String decrypt(String str); @Override String newKey(); }
AES128Cryptor extends AESCryptorAbstract { @Override public String decrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.decrypt(str); } AES128Cryptor(); @Override String encrypt(String str); @Override String decrypt(String str); @Override String newKey();  }