public abstract class WrappedDecryptorProvider extends Object implements DecryptorProvider
| Modifier and Type | Field and Description |
|---|---|
protected DecryptorProvider |
decryptorProvider |
| Modifier | Constructor and Description |
|---|---|
protected |
WrappedDecryptorProvider(DecryptorProvider decryptorProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt(Key key,
File src,
File dest)
解密,将目标文件解密输出至目标文件
|
InputStream |
decrypt(Key key,
InputStream in)
解密,将输入流包装成解密的输入流
|
void |
decrypt(Key key,
InputStream in,
OutputStream out)
解密,将输入流解密输出至输出流
|
OutputStream |
decrypt(Key key,
OutputStream out)
解密,将输入流包装成解密的输出流
|
protected final DecryptorProvider decryptorProvider
protected WrappedDecryptorProvider(DecryptorProvider decryptorProvider)
public void decrypt(Key key, File src, File dest) throws IOException
DecryptorProviderdecrypt in interface DecryptorProviderkey - 密钥src - 源文件dest - 目标文件IOException - I/O 异常public void decrypt(Key key, InputStream in, OutputStream out) throws IOException
DecryptorProviderdecrypt in interface DecryptorProviderkey - 密钥in - 输入流out - 输出流IOException - I/O 异常public InputStream decrypt(Key key, InputStream in) throws IOException
DecryptorProviderdecrypt in interface DecryptorProviderkey - 密钥in - 输入流IOException - I/O 异常public OutputStream decrypt(Key key, OutputStream out) throws IOException
DecryptorProviderdecrypt in interface DecryptorProviderkey - 密钥out - 输出流IOException - I/O 异常Copyright © 2019. All rights reserved.