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.IOException
GeneralSecurityException
public CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Copyright © 2004–2019. All rights reserved.