|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CryptoStreamFactory
Interface for creating encrypting/decrypting streams.
Method Summary | |
---|---|
InputStream |
getInputStream(InputStream is)
Creates a decrypting input stream using the default password. |
InputStream |
getInputStream(InputStream is,
char[] password)
Creates an decrypting input stream using a given password. |
InputStream |
getInputStream(InputStream is,
String decryptionMode)
Creates input stream based on the decryption mode using the default password. |
InputStream |
getInputStream(InputStream is,
String decryptionMode,
char[] password)
Creates input stream based on the decryption mode using the given password. |
OutputStream |
getOutputStream(OutputStream os)
Creates an encrypting output stream using the default password. |
OutputStream |
getOutputStream(OutputStream os,
char[] password)
Creates an encrypting output stream using the given password. |
InputStream |
getSmartInputStream(InputStream is)
Creates a smart decrypting input stream using the default password. |
InputStream |
getSmartInputStream(InputStream is,
char[] password)
Creates a smart decrypting input stream using a given password. |
Method Detail |
---|
InputStream getInputStream(InputStream is, String decryptionMode) throws GeneralSecurityException, IOException
is
- the input stream to be wrappeddecryptionMode
- the decryption mode (true|false|auto)
GeneralSecurityException
- creating the input stream failed
IOException
- creating the input stream failedInputStream getInputStream(InputStream is, String decryptionMode, char[] password) throws GeneralSecurityException, IOException
is
- the input stream to be wrappeddecryptionMode
- the decryption mode (true|false|auto)password
- the password to be used
GeneralSecurityException
- creating the input stream failed
IOException
- creating the input stream failedInputStream getInputStream(InputStream is) throws GeneralSecurityException, IOException
is
- the input stream to be wrapped
GeneralSecurityException
- creating the input stream failed
IOException
- creating the input stream failedInputStream getInputStream(InputStream is, char[] password) throws GeneralSecurityException, IOException
is
- the input stream to be wrappedpassword
- the password to be used
GeneralSecurityException
- creating the input stream failed
IOException
- creating the input stream failedInputStream getSmartInputStream(InputStream is) throws GeneralSecurityException, IOException
is
- the input stream to be wrapped
GeneralSecurityException
- creating the input stream failed
IOException
- creating the input stream failedInputStream getSmartInputStream(InputStream is, char[] password) throws GeneralSecurityException, IOException
is
- the input stream to be wrappedpassword
- the password to be used
GeneralSecurityException
- creating the input stream failed
IOException
- creating the input stream failedOutputStream getOutputStream(OutputStream os) throws GeneralSecurityException, IOException
os
- the output stream to be wrapped
GeneralSecurityException
- creating the ouptut stream failed
IOException
- creating the ouptut stream failedOutputStream getOutputStream(OutputStream os, char[] password) throws GeneralSecurityException, IOException
os
- the output stream to be wrappedpassword
- the password to be used
GeneralSecurityException
- creating the ouptut stream failed
IOException
- creating the ouptut stream failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |