|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.wiztools.wizcrypt.WizCrypt
public final class WizCrypt
This class has the public APIs of WizCrypt application to do encryption and decryption.
CipherKeyGen,
CipherKey| Method Summary | |
|---|---|
static void |
decrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck)
|
static void |
decrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb)
|
static void |
decrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb,
long size)
This is the public API exposed to decrypt. |
static void |
encrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck)
|
static void |
encrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb)
|
static void |
encrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb,
long size)
This is the public API exposed to encrypt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void encrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb,
long size)
throws java.io.IOException
is - The input stream that needs to be encrypted.os - The output stream where the encrypted content
of is need to be written.ck - The CipherKey object. This has to be
created by passing the password to
CipherKeyGen.getCipherKeyForEncrypt(String keyStr).cb - Callback object for monitoring the progress.size - The size of the is stream. When this is passed,
the Callback.notifyProgress(long value) will receive
the percentage completed. If this is not passed, it will get the
number of bytes read and processed.
java.io.IOException - IOException is thrown when
faced with IO issues during read/write.CipherKeyGen.getCipherKeyForEncrypt(String keyStr),
CipherKey,
Callback
public static void encrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck)
throws java.io.IOException
java.io.IOExceptionencrypt(InputStream is, OutputStream os,
CipherKey ck, Callback cb, long size)
public static void encrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb)
throws java.io.IOException
java.io.IOExceptionencrypt(InputStream is, OutputStream os,
CipherKey ck, Callback cb, long size)
public static void decrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb,
long size)
throws java.io.IOException,
PasswordMismatchException
is - The input stream that needs to be decrypted.os - The output stream where the decrypted content
of is need to be written.ck - The CipherKey object. This has to be
created by passing the password to
CipherKeyGen.getCipherKeyForDecrypt(String keyStr).cb - Callback object for monitoring the progress.size - The size of the is stream. When this is passed,
the Callback.notifyProgress(long value) will receive
the percentage completed. If this is not passed, it will get the
number of bytes read and processed.
PasswordMismatchException - PasswordMismatchException
is thrown when the supplied password is wrong.
java.io.IOException - IOException is thrown when faced with
IO issues during read/write.CipherKeyGen.getCipherKeyForDecrypt(String keyStr),
CipherKey,
Callback
public static void decrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck)
throws java.io.IOException,
PasswordMismatchException
java.io.IOException
PasswordMismatchExceptiondecrypt(InputStream is, OutputStream os,
CipherKey ck, Callback cb, long size)
public static void decrypt(java.io.InputStream is,
java.io.OutputStream os,
CipherKey ck,
Callback cb)
throws java.io.IOException,
PasswordMismatchException
java.io.IOException
PasswordMismatchExceptiondecrypt(InputStream is, OutputStream os,
CipherKey ck, Callback cb, long size)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||