public interface CryptoStreamFactory
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(java.io.InputStream is)
Creates a decrypting input stream.
|
java.io.InputStream |
getInputStream(java.io.InputStream is,
char[] password)
Creates an decrypting input stream
|
java.io.OutputStream |
getOutputStream(java.io.OutputStream os,
char[] password)
Creates an encrypting output stream
|
java.io.InputStream |
getSmartInputStream(java.io.InputStream is)
Creates a smart decrypting input stream.
|
java.io.InputStream |
getSmartInputStream(java.io.InputStream is,
char[] password)
Creates an decrypting input stream
|
java.io.InputStream getInputStream(java.io.InputStream is) throws java.security.GeneralSecurityException, java.io.IOException
is
- the input stream to be wrappedjava.security.GeneralSecurityException
- creating the input stream failedjava.io.IOException
- creating the input stream failedjava.io.InputStream getInputStream(java.io.InputStream is, char[] password) throws java.security.GeneralSecurityException, java.io.IOException
is
- the input stream to be wrappedpassword
- the password to be usedjava.security.GeneralSecurityException
- creating the input stream failedjava.io.IOException
- creating the input stream failedjava.io.InputStream getSmartInputStream(java.io.InputStream is) throws java.security.GeneralSecurityException, java.io.IOException
is
- the input stream to be wrappedjava.security.GeneralSecurityException
- creating the input stream failedjava.io.IOException
- creating the input stream failedjava.io.InputStream getSmartInputStream(java.io.InputStream is, char[] password) throws java.security.GeneralSecurityException, java.io.IOException
is
- the input stream to be wrappedpassword
- the password to be usedjava.security.GeneralSecurityException
- creating the input stream failedjava.io.IOException
- creating the input stream failedjava.io.OutputStream getOutputStream(java.io.OutputStream os, char[] password) throws java.security.GeneralSecurityException, java.io.IOException
os
- the output stream to be wrappedpassword
- the password to be usedjava.security.GeneralSecurityException
- creating the ouptut stream failedjava.io.IOException
- creating the ouptut stream failedCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.