Package be.gaudry.model.file.security
Class EncryptionHelper
java.lang.Object
be.gaudry.model.file.security.EncryptionHelper
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EncryptionHelper
public EncryptionHelper(SecretKey secretKey, String encryptionAlgorithm) throws NoSuchPaddingException, NoSuchAlgorithmException
-
-
Method Details
-
encrypt
public void encrypt(String content, String fileName) throws InvalidKeyException, IOException, EncryptionHelper.EncryptionException -
decrypt
public String decrypt(String fileName) throws InvalidAlgorithmParameterException, InvalidKeyException, IOException
-