public interface CryptoStreamFactory
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Info about used algorithm.
|
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.
|
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 failedIOException - 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 usedGeneralSecurityException - creating the input stream failedIOException - creating the input stream failedInputStream getInputStream(InputStream is) throws GeneralSecurityException, IOException
is - the input stream to be wrappedGeneralSecurityException - creating the input stream failedIOException - creating the input stream failedInputStream getInputStream(InputStream is, char[] password) throws GeneralSecurityException, IOException
is - the input stream to be wrappedpassword - the password to be usedGeneralSecurityException - creating the input stream failedIOException - creating the input stream failedInputStream getSmartInputStream(InputStream is) throws GeneralSecurityException, IOException
is - the input stream to be wrappedGeneralSecurityException - creating the input stream failedIOException - creating the input stream failedInputStream getSmartInputStream(InputStream is, char[] password) throws GeneralSecurityException, IOException
is - the input stream to be wrappedpassword - the password to be usedGeneralSecurityException - creating the input stream failedIOException - creating the input stream failedOutputStream getOutputStream(OutputStream os) throws GeneralSecurityException, IOException
os - the output stream to be wrappedGeneralSecurityException - creating the output stream failedIOException - creating the output stream failedOutputStream getOutputStream(OutputStream os, char[] password) throws GeneralSecurityException, IOException
os - the output stream to be wrappedpassword - the password to be usedGeneralSecurityException - creating the output stream failedIOException - creating the output stream failedString getAlgorithm()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.