hudson.model
Class UsageStatistics.CombinedCipherInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by hudson.model.UsageStatistics.CombinedCipherInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
UsageStatistics

public static final class UsageStatistics.CombinedCipherInputStream
extends FilterInputStream

The opposite of the UsageStatistics.CombinedCipherOutputStream.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UsageStatistics.CombinedCipherInputStream(InputStream in, Cipher asym, String algorithm, int keyLength)
           
UsageStatistics.CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm)
           
 
Method Summary
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsageStatistics.CombinedCipherInputStream

public UsageStatistics.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 from asym.getBlockSize() but that doesn't work with Sun's implementation.
Throws:
IOException
GeneralSecurityException

UsageStatistics.CombinedCipherInputStream

public UsageStatistics.CombinedCipherInputStream(InputStream in,
                                                 RSAKey key,
                                                 String algorithm)
                                          throws IOException,
                                                 GeneralSecurityException
Throws:
IOException
GeneralSecurityException


Copyright © 2004-2013. All Rights Reserved.