public class DecryptMigrationManagerImpl extends Object implements Closeable
| Constructor and Description |
|---|
DecryptMigrationManagerImpl(MigrationReport report,
MigrationZipFile zip,
Path decryptFile)
Creates a new migration manager for a decrypt operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
doDecrypt(String productBranding,
String productVersion)
Proceeds with the decryp operation.
|
Path |
getDecryptedFile() |
Path |
getExportFile() |
MigrationReport |
getReport() |
public DecryptMigrationManagerImpl(MigrationReport report, MigrationZipFile zip, Path decryptFile)
report - the migration report where warnings and errors can be recordedzip - the exported zip filedecryptFile - the file where to decrypt the exorted zipMigrationException - if a failure occurs while processing the zip file (the error will
not be recorded with the report)IllegalArgumentException - if report is null or if it is not
for a decrypt migration operation or if zip or decryptFile is
nullpublic void doDecrypt(String productBranding, String productVersion)
productBranding - the product branding being decryptedproductVersion - the product version being decryptedIllegalArgumentException - if productBranding or productVersion
is nullMigrationException - to stop the decrypt operationpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic MigrationReport getReport()
public Path getExportFile()
public Path getDecryptedFile()
This work is licensed under a Creative Commons Attribution 4.0 International License.