Package com.suncode.pwfl.archive
Interface FileCipherService
public interface FileCipherService
-
Method Summary
Modifier and TypeMethodDescriptiondecryptFile
(InputStream inputStream, String algorithm, String key) void
decryptFile
(Long fileId) Metoda odpowiedzialna za deszyfrowanie pliku.encryptFile
(InputStream inputStream, String algorithm, int keyLength) void
encryptFile
(Long fileId) Metoda odpowiedzialna za szyfrowanie pliku.
-
Method Details
-
encryptFile
EncryptedFile encryptFile(InputStream inputStream, String algorithm, int keyLength) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IOException -
decryptFile
InputStream decryptFile(InputStream inputStream, String algorithm, String key) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IOException -
encryptFile
void encryptFile(Long fileId) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException Metoda odpowiedzialna za szyfrowanie pliku.- Parameters:
fileId
- - id pliku- Throws:
IOException
NoSuchPaddingException
NoSuchAlgorithmException
InvalidKeyException
-
decryptFile
void decryptFile(Long fileId) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException Metoda odpowiedzialna za deszyfrowanie pliku.- Parameters:
fileId
- - id pliku- Throws:
IOException
NoSuchPaddingException
NoSuchAlgorithmException
InvalidKeyException
-