public interface FileCipherService
Modifier and Type | Method and Description |
---|---|
InputStream |
decryptFile(InputStream inputStream,
String algorithm,
String key) |
void |
decryptFile(Long fileId)
Metoda odpowiedzialna za deszyfrowanie pliku.
|
EncryptedFile |
encryptFile(InputStream inputStream,
String algorithm,
int keyLength) |
void |
encryptFile(Long fileId)
Metoda odpowiedzialna za szyfrowanie pliku.
|
EncryptedFile encryptFile(InputStream inputStream, String algorithm, int keyLength) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IOException
InputStream decryptFile(InputStream inputStream, String algorithm, String key) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IOException
void encryptFile(Long fileId) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException
fileId
- - id plikuIOException,
- NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyExceptionIOException
NoSuchPaddingException
NoSuchAlgorithmException
InvalidKeyException
void decryptFile(Long fileId) throws IOException, NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException
fileId
- - id plikuIOException,
- NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyExceptionIOException
NoSuchPaddingException
NoSuchAlgorithmException
InvalidKeyException
Copyright © 2023 Suncode. All rights reserved.