Class semper.crypto.CryptoKeyStorage
All Packages Class Hierarchy This Package Previous Next Index
Class semper.crypto.CryptoKeyStorage
java.lang.Object
|
+----semper.crypto.CryptoKeyStorage
- public class CryptoKeyStorage
- extends Object
- implements CryptoConstants
-
CryptoKeyStorage()
-
-
createFile(String)
- Creates a file with 4 public key pairs.
-
getKeys(String, boolean[], CryptoKeyInfo, CryptoKeyInfo, CryptoKeyInfo, CryptoKeyInfo, CryptoKeyInfo, CryptoKeyInfo, CryptoKeyInfo, CryptoKeyInfo)
- Loads keys from the specified file.
-
getKeys(String, boolean[], CryptoKeyInfo[])
- Loads keys from the specified file.
CryptoKeyStorage
public CryptoKeyStorage()
createFile
public static void createFile(String fileName) throws CryptoManException
- Creates a file with 4 public key pairs. 2 for the client and two for the server
This file is only intended for testing until the archive is fully functional
- Parameters:
- fileName - is the name of the file to which keys are written
- Throws: CryptoManException
- if the keys could not be written to the given file
getKeys
public static void getKeys(String fileName,
boolean keyDesignator[],
CryptoKeyInfo key[]) throws CryptoManException
- Loads keys from the specified file.
long description with pre/post-conditions etc follows here
- Parameters:
- fileName - is the file from which the keys should be read
- keyDesignator - is a boolean array of length 8. keyi is loaded if keyDesignator[i] is true. all keys are loaded if the array is null.
- key - is an array of the keys
- Returns:
- void
- Throws: CryptoManException
- if the keys could not be loaded
getKeys
public static void getKeys(String fileName,
boolean keyDesignator[],
CryptoKeyInfo key0,
CryptoKeyInfo key1,
CryptoKeyInfo key2,
CryptoKeyInfo key3,
CryptoKeyInfo key4,
CryptoKeyInfo key5,
CryptoKeyInfo key6,
CryptoKeyInfo key7) throws CryptoManException
- Loads keys from the specified file.
long description with pre/post-conditions etc follows here
- Parameters:
- fileName - is the file from which the keys should be read
- keyDesignator - is a boolean array of length 8. keyi is loaded if keyDesignator[i] is true. all keys are loaded if the array is null.
- key0 - is the clients secret signature key.
- key1 - is the clients public signature key.
- key2 - is the servers secret signature key.
- key3 - is the servers public signature key.
- key4 - is the clients secret decryption key.
- key5 - is the clients public encryption key.
- key6 - is the servers secret decryption key.
- key7 - is the servers public encryption key.
- Returns:
- void
- Throws: CryptoManException
- if the keys could not be loaded
All Packages Class Hierarchy This Package Previous Next Index