|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunity.util.XMLEncryptDecrypt
public class XMLEncryptDecrypt
| Constructor Summary | |
|---|---|
XMLEncryptDecrypt(java.lang.String pass)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
encrypt(java.io.InputStream in,
java.io.OutputStream out)
Encrypts data from a source to another using the key generated with password in the constructor. |
java.io.InputStream |
getDecryptStream(java.io.InputStream in)
Provides a wrapper stream around the original encrypted input to decrypt. |
java.io.InputStream |
getDecryptStream(java.lang.String string)
Provides a wrapper stream around the original encrypted input to decrypt. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLEncryptDecrypt(java.lang.String pass)
pass - A string of one or more words that will serve as a password.| Method Detail |
|---|
public void encrypt(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - Clear text InputStreamout - OutputStream to which to write encrypted data.
java.io.IOException
public java.io.InputStream getDecryptStream(java.lang.String string)
throws java.io.IOException,
java.io.FileNotFoundException
string - path to encrypted source to decrypt
java.io.IOException
java.io.FileNotFoundException
public java.io.InputStream getDecryptStream(java.io.InputStream in)
throws java.io.IOException,
java.io.FileNotFoundException
string - path to encrypted source to decrypt
java.io.IOException
java.io.FileNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||