Package hudson.model
Class UsageStatistics.CombinedCipherInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- hudson.model.UsageStatistics.CombinedCipherInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- UsageStatistics
public static final class UsageStatistics.CombinedCipherInputStream extends FilterInputStream
The opposite of theUsageStatistics.CombinedCipherOutputStream
.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm)
CombinedCipherInputStream(InputStream in, Cipher asym, String algorithm, int keyLength)
-
Method Summary
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
CombinedCipherInputStream
public CombinedCipherInputStream(InputStream in, Cipher asym, String algorithm, int keyLength) throws IOException, GeneralSecurityException
- Parameters:
keyLength
- Block size of the asymmetric cipher, in bits. I thought I can get it fromasym.getBlockSize()
but that doesn't work with Sun's implementation.- Throws:
IOException
GeneralSecurityException
-
CombinedCipherInputStream
public CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm) throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
-