|
SafeAPI v1.20 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.safeapi.CryptoCommon
com.safeapi.CryptoDir
Direction encryption/decryption APIs Module
| Constructor Summary | |
CryptoDir()
Loads an instance of CryptoDir |
|
| Method Summary | |
boolean |
addRecipient(String sListName,
String sKeyID)
Adds a new recipient to the list. |
void |
asymDecryptDir(String sKeyID,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
Decrypt a direcotry with an asymmetric cipher for the specified private key |
void |
asymEncryptDir(String sInputDir,
String sOutputDir,
String sListName)
Encrypt a directory with an asymmetric cipher to recipients in the specified list NOTE : sListName is for further release. |
void |
createRecipients(String sListName)
Creates a new recipient list for RSA file encryption. |
void |
createRecipientsTune(String sListName,
int nInitialCapacity,
int nCapacityIncrement)
Create a new recipient list for RSA file encryption. |
void |
decryptDir(String sKeyID,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
Decrypts the specified directory with the key ID |
void |
decryptDirWithPassphrase(String sAlgorithm,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
Decrypt the specified directory with the key derived from a passphrase. |
void |
encryptDir(String sKeyID,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
Encrypts the specified directory with a secret key |
void |
encryptDirWithPassphrase(String sAlgorithm,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
Encrypts the specified directory with the key derived from a passphrase. |
String |
getRecipients(String sListName)
Gets the recipients list. |
boolean |
removeRecipient(String sListName,
String sKeyID)
Removes a recipient from the list. |
void |
removeRecipients(String sListName)
Deletes the recipients list. |
| Methods inherited from class com.safeapi.CryptoCommon |
createSeedFile, getParameter, getRandomBytes, getRawError, getRegisteredError, getVersion, isOperationOK, setParameter, wipe |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CryptoDir()
| Method Detail |
public boolean addRecipient(String sListName,
String sKeyID)
ListName is for later use.
sListName - The name for this listsKeyID - The key ID for this recipient
public void createRecipients(String sListName)
ListName is for later use.
sListName - The name for this list
public void createRecipientsTune(String sListName,
int nInitialCapacity,
int nCapacityIncrement)
ListName is for later use.
sListName - The name for this listnInitialCapacity - The initial capacity of the vectornCapacityIncrement - The amount by which the capacity
is increased when the vector overflowspublic String getRecipients(String sListName)
sListName - The name for this list
public boolean removeRecipient(String sListName,
String sKeyID)
ListName is for later use.
sListName - The name for this listsKeyID - The key ID or file path for this recipient
public void removeRecipients(String sListName)
ListName is for later use.
sListName - The name for this list
public void encryptDirWithPassphrase(String sAlgorithm,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
sAlgorithm - The encryption algorithmcaPassphrase - The passphrase for the PBE key to usesInputDir - The full path of the directory to encryptsOutputDir - The full path of the output directory
public void decryptDirWithPassphrase(String sAlgorithm,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
sAlgorithm - The encryption algorithmcaPassphrase - The passphrase for the PBE key to usesInputDir - The full path of the directory to encryptsOutputDir - The full path of the output directory
public void encryptDir(String sKeyID,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
sKeyID - The Key IDcaPassphrase - The secret key passphrase protectionsInputDir - The full path of the directory to encryptsOutputDir - The full path of the output directory
public void decryptDir(String sKeyID,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
sKeyID - The Key IDcaPassphrase - The secret key passphrase protectionsInputDir - The full path of the directory to encryptsOutputDir - The full path of the output directory
public void asymEncryptDir(String sInputDir,
String sOutputDir,
String sListName)
sInputDir - The input directory to encryptsOutputDir - The destination directory for the encrypted filessListName - The recipients list name
public void asymDecryptDir(String sKeyID,
char[] caPassphrase,
String sInputDir,
String sOutputDir)
sKeyID - The Key ID of the private key to usecaPassphrase - The passphrase which protects this private keysInputDir - The input directory to decryptsOutputDir - The destination directory for the decrypted files
|
SafeAPI v1.20 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||