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
The opposite of the
UsageStatistics.CombinedCipherOutputStream
.-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionCombinedCipherInputStream
(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, skipNBytes, transferTo
-
Constructor Details
-
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
-