|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.crypto.Encrypter
Encrypts every communication between the client and the server using a key establishment protocol (half-certified Diffie-Hellman) with keys which have a length of 1024 Bit.
| Field Summary | |
private Key |
key
|
private int |
KEY_LENGTH
|
| Constructor Summary | |
Encrypter(Key key)
|
|
| Method Summary | |
static void |
bzip2CompressData(java.lang.String inFilename,
java.lang.String outFilename)
Compresses a specified file. |
void |
encrypt(int randomize,
long inLength,
java.io.InputStream in,
java.io.OutputStream out)
Encrypts a specified input stream. |
void |
encrypt(int randomize,
java.lang.String inFilename,
java.lang.String outFilename)
Encrypts a specified file. |
java.lang.String |
encryptURLFile(java.lang.String urlFile)
Encrypts the file attribute of a URL. |
static void |
main(java.lang.String[] args)
Simple test program. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Key key
private final int KEY_LENGTH
| Constructor Detail |
public Encrypter(Key key)
key - key for the encryption algorithm| Method Detail |
public void encrypt(int randomize,
java.lang.String inFilename,
java.lang.String outFilename)
throws java.io.IOException
randomize - random number for the key establishment protocolinFilename - name of the file which should be encryptedoutFilename - name of the encrypted file
java.io.IOException - if an I/O error occurs.
public void encrypt(int randomize,
long inLength,
java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
randomize - random number for the key establishment protocolinLength - inLength length of the input stream which should be encryptedin - input stream which should be encryptedout - output stream for the encrypted data
java.io.IOException - if an I/O error occurs.
public java.lang.String encryptURLFile(java.lang.String urlFile)
throws java.io.IOException
urlFile - file attribute of a URL
java.io.IOException - if an I/O error occurs.
public static void bzip2CompressData(java.lang.String inFilename,
java.lang.String outFilename)
throws java.io.IOException
inFilename - name of the file which should be compressedoutFilename - name of the compressed file
java.io.IOException - if an I/O error occurs.public static void main(java.lang.String[] args)
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||