public static final class UsageStatistics.CombinedCipherInputStream extends FilterInputStream
UsageStatistics.CombinedCipherOutputStream.in| Constructor and Description |
|---|
CombinedCipherInputStream(InputStream in,
Cipher asym,
String algorithm,
int keyLength) |
CombinedCipherInputStream(InputStream in,
RSAKey key,
String algorithm) |
public CombinedCipherInputStream(InputStream in, Cipher asym, String algorithm, int keyLength) throws IOException, GeneralSecurityException
keyLength - Block size of the asymmetric cipher, in bits. I thought I can get it from asym.getBlockSize()
but that doesn't work with Sun's implementation.IOExceptionGeneralSecurityExceptionpublic CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2019. All rights reserved.