|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.crypto.Decrypter
Decrypts every encrypted communication from the client using a key establishment protocol (half-certified Diffie-Hellman) with keys which have a length of 1024 Bit.
| Field Summary | |
private Key |
key
|
| Constructor Summary | |
Decrypter(Key key)
|
|
| Method Summary | |
static void |
bzip2UncompressData(java.lang.String inFilename,
java.lang.String outFilename)
Uncompresses a specified file. |
private boolean |
decrypt(java.io.InputStream in,
java.io.OutputStream out,
java.math.BigInteger D)
Decrypts a specified input stream. |
void |
decrypt(java.lang.String privateKey,
java.lang.String inFilename,
java.lang.String outFilename)
Decrypts a specified input stream. |
java.lang.String |
decryptURLFile(java.lang.String urlFile,
java.math.BigInteger D)
Decrypts the file attribute of a URL where the parameters are packed in a parameter 'param'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Key key
| Constructor Detail |
public Decrypter(Key key)
key - key for the decryption algorithm| Method Detail |
public void decrypt(java.lang.String privateKey,
java.lang.String inFilename,
java.lang.String outFilename)
throws java.io.IOException
privateKey - decryption number (radix 32) for the half-certified Diffie-Hellman protocolinFilename - name of the file which should be decryptedoutFilename - name of the decrypted file
java.io.IOException - if an I/O error occurs.
private boolean decrypt(java.io.InputStream in,
java.io.OutputStream out,
java.math.BigInteger D)
throws java.io.IOException
in - input stream which should be decryptedout - output stream for the decrypted dataD - decryption number for the half-certified Diffie-Hellman protocol
java.io.IOException - if an I/O error occurs.
public java.lang.String decryptURLFile(java.lang.String urlFile,
java.math.BigInteger D)
throws java.io.IOException
urlFile - encrypted file attribute of a URLD - decryption number for the half-certified Diffie-Hellman protocol
null if the encrypted file attribute cannot be decrypted
java.io.IOException - if an I/O error occurs.
public static void bzip2UncompressData(java.lang.String inFilename,
java.lang.String outFilename)
throws java.io.IOException
inFilename - name of the file which should be uncompressedoutFilename - name of the uncompressed file
java.io.IOException - if an I/O error occurs.
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||