public class FileDecryptor extends AbstractFileDecryptor
FileDecryptor can decrypt files from the given crypt model bean.model| Constructor and Description |
|---|
FileDecryptor(de.alpharogroup.crypto.model.CryptModel<Cipher,String> model)
Instantiates a new
FileDecryptor. |
FileDecryptor(de.alpharogroup.crypto.model.CryptModel<Cipher,String> model,
File decryptedFile)
Instantiates a new file decryptor.
|
| Modifier and Type | Method and Description |
|---|---|
File |
decrypt(File encrypted) |
protected File |
newDecryptedFile(String parent,
String child)
New decrypted file.
|
newCipher, newCipher, newKeySpecnewOperationModenewAlgorithm, newAlgorithmParameterSpec, newCipher, newIterationCount, newSalt, newSecretKeyFactory, onInitializepublic FileDecryptor(de.alpharogroup.crypto.model.CryptModel<Cipher,String> model) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
FileDecryptor.model - the modelInvalidKeyException - the invalid key exceptionNoSuchAlgorithmException - is thrown if instantiation of the SecretKeyFactory object fails.InvalidKeySpecException - is thrown if generation of the SecretKey object fails.NoSuchPaddingException - the no such padding exceptionInvalidAlgorithmParameterException - is thrown if initialization of the cypher object fails.UnsupportedEncodingException - is thrown if the named charset is not supported.public FileDecryptor(de.alpharogroup.crypto.model.CryptModel<Cipher,String> model, File decryptedFile) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException, UnsupportedEncodingException
model - the modeldecryptedFile - is the target of the result from the decryption, if null the default file will be
created. If null the name convention is given name of the encrypted file with the
extension '.decrypted'.InvalidKeyException - the invalid key exceptionNoSuchAlgorithmException - is thrown if instantiation of the SecretKeyFactory object fails.InvalidKeySpecException - is thrown if generation of the SecretKey object fails.NoSuchPaddingException - the no such padding exceptionInvalidAlgorithmParameterException - is thrown if initialization of the cypher object fails.UnsupportedEncodingException - is thrown if the named charset is not supported.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.