public class RaesFiles extends Object
Note that this class is not intended to access RAES encrypted ZIP files -
use the TFile class for this task instead.
| Constructor and Description |
|---|
RaesFiles() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decrypt(String raesFilePath,
String plainFilePath,
boolean strongAuthentication)
Decrypts the given RAES file to the given plain file.
|
static void |
decrypt(String raesFilePath,
String plainFilePath,
boolean strongAuthentication,
TArchiveDetector detector)
Decrypts the given RAES file to the given plain file,
using the provided TArchiveDetector to detect any archvie files in its
parent directory path except the files themselves, which are not
recognized as archive files.
|
static void |
encrypt(String plainFilePath,
String raesFilePath)
Encrypts the given plain file to the given RAES file.
|
static void |
encrypt(String plainFilePath,
String raesFilePath,
TArchiveDetector detector)
Encrypts the given plain file to the given RAES file,
using the provided TArchiveDetector to detect any archive files in its
parent directory path except the files themselves, which are not
recognized as archive files.
|
private static TFile |
newNonArchiveFile(String path,
TArchiveDetector detector)
Creates a file object which uses the provided TArchiveDetector,
but does not recognize its own pathname as an archive file.
|
public static void encrypt(String plainFilePath, String raesFilePath) throws IOException
IOExceptionpublic static void encrypt(String plainFilePath, String raesFilePath, TArchiveDetector detector) throws IOException
IOExceptionpublic static void decrypt(String raesFilePath, String plainFilePath, boolean strongAuthentication) throws IOException
IOExceptionpublic static void decrypt(String raesFilePath, String plainFilePath, boolean strongAuthentication, TArchiveDetector detector) throws IOException
strongAuthentication - If this is true, the whole
contents of encrypted file get authenticated, which can be a
time consuming operation.
Otherwise, only the key/password and the file length get
authenticated.IOExceptionprivate static TFile newNonArchiveFile(String path, TArchiveDetector detector)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.