|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.jdbs.BackupArtifactAssembler
public class BackupArtifactAssembler
This class provided methods and utils to assembly a backup.
| Field Summary | |
|---|---|
static java.lang.String |
DECRYPTION_DIRECTORY_NAME
|
static java.lang.String |
ENCRYPTION_DIRECTORY_NAME
|
| Constructor Summary | |
|---|---|
BackupArtifactAssembler()
|
|
| Method Summary | |
|---|---|
static java.io.File |
buildNewBackupArtifact(java.io.File repositoryDirectory,
SymmetricKey symmetricKey,
KeyPair keyPair,
Backup backup)
This method builds a new signed backup artifact placing it into a temp directory. |
protected static void |
writeBackupCRC32Checksum(java.io.File crc32Output,
java.io.File compressedBackup)
This method writes a CRC32 Checksum to a file. |
protected static void |
writeBackupMD5Digest(java.io.File MD5DigestOutput,
java.io.File compressedBackup)
This method writes a MD5 Digest to a file. |
protected static void |
writeBackupXmlInfoFile(Backup backup,
java.io.File outputInfo)
This method writes to a file the info associated to a backup, in xml format. |
protected static void |
writeX509Certificate(java.security.cert.X509Certificate certificate,
java.io.File certificateFile)
This method writes to a file an X509Certificate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ENCRYPTION_DIRECTORY_NAME
public static final java.lang.String DECRYPTION_DIRECTORY_NAME
| Constructor Detail |
|---|
public BackupArtifactAssembler()
| Method Detail |
|---|
public static java.io.File buildNewBackupArtifact(java.io.File repositoryDirectory,
SymmetricKey symmetricKey,
KeyPair keyPair,
Backup backup)
throws java.io.IOException
symmetricKey - The symmetric key to use in the encryption process.keyPair - The asymmetric key pair to be used during the signing phase.backup - The input backup from which the backup artifact must be created.
java.io.IOException - If something wrong happens with the filesystem.
protected static void writeBackupXmlInfoFile(Backup backup,
java.io.File outputInfo)
backup - The backup whose info must be stored to the output file.outputInfo - The outputFile where the info will be stored.
protected static void writeBackupCRC32Checksum(java.io.File crc32Output,
java.io.File compressedBackup)
crc32Output - The CRC32 Checksum file to be written.compressedBackup - The Compressed Backup Artifact from which the CRC32 must be computed.
protected static void writeBackupMD5Digest(java.io.File MD5DigestOutput,
java.io.File compressedBackup)
MD5DigestOutput - The MD5 Digest file to be written.compressedBackup - The Compressed Backup Artifact from which the CRC32 must be computed.
protected static void writeX509Certificate(java.security.cert.X509Certificate certificate,
java.io.File certificateFile)
certificate - The certificate that must be saved.certificateFile - The output file where the certificate must be stored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||