public class Archiver extends Object
Summarizing, This Archiver main functionalities are to timeStamp the file and store it in the same directory and to keep track of the number of files written to the current key store.
Any other implementation to the archiver can be given, if some other form of archival mechanism is required.
Constructor and Description |
---|
Archiver()
Creates new Archiver
|
Modifier and Type | Method and Description |
---|---|
void |
archive(String fileName,
String location)
This method generates a Date object, formatting according to
the "DDMMyyyyHHmmss" format and saves the files in the same directory.
|
void |
archiveKeyStore(String logName,
String location)
Archives the keystore after the specified number of files have been
used with this keystore.
|
int |
checkCount()
Returns the current count of the archival.
|
void |
incrementCount()
Increment the current count of the archival.
|
public void archive(String fileName, String location)
also does some book keeping operations.
fileName
- name of the archive file.location
- location of the archive file.public int checkCount()
public void incrementCount()
public void archiveKeyStore(String logName, String location)
logName
- Name of the log which is to be archived.location
- The location of the keystores.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.