org.ccnx.ccn.test.io.CCNSecureInputStreamTest Class Reference

Test for stream encryption/decryption. More...

List of all members.

Classes

class  StreamFactory

Public Member Functions

void cipherEncryptDecrypt () throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, ContentEncodingException
 Test cipher encryption & decryption work.
void cipherStreamEncryptDecrypt () throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException
 Test cipher stream encryption & decryption work.
void contentEncryptDecrypt () throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException
 Test content encryption & decryption work.
void basicStreamEncryptDecrypt () throws IOException
 Test stream encryption & decryption work, and that using different keys for decryption fails.
void versionedStreamEncryptDecrypt () throws IOException
void fileStreamEncryptDecrypt () throws IOException
void basicSeeking () throws IOException, NoSuchAlgorithmException
 seek forward, read, seek back, read and check the results do it for different size parts of the data
void versionedSeeking () throws IOException, NoSuchAlgorithmException
void fileSeeking () throws IOException, NoSuchAlgorithmException
void basicSkipping () throws IOException, NoSuchAlgorithmException
 Test that skipping while reading an encrypted stream works Tries small/medium/large skips.
void versionedSkipping () throws IOException, NoSuchAlgorithmException
void fileSkipping () throws IOException, NoSuchAlgorithmException
void basicMarkReset () throws IOException, NoSuchAlgorithmException
 Test that mark and reset on an encrypted stream works Tries small/medium/large jumps.
void versionedMarkReset () throws IOException, NoSuchAlgorithmException
void fileMarkReset () throws IOException, NoSuchAlgorithmException

Static Public Member Functions

static void setUpBeforeClass () throws Exception
static void cleanupAfterClass ()
static byte[] readFile (InputStream inputStream, int fileLength) throws IOException

Static Package Attributes

static CCNTestHelper testHelper = new CCNTestHelper(CCNSecureInputStreamTest.class)
 Handle naming for the test.
static CCNHandle outputLibrary
static CCNHandle inputLibrary
static Flosser flosser
static final int BUF_SIZE = 4096
static StreamFactory basic
static StreamFactory versioned
static StreamFactory file

Detailed Description

Test for stream encryption/decryption.


Member Function Documentation

void org.ccnx.ccn.test.io.CCNSecureInputStreamTest.cipherEncryptDecrypt (  )  throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, ContentEncodingException

Test cipher encryption & decryption work.

Exceptions:
ContentEncodingException 
void org.ccnx.ccn.test.io.CCNSecureInputStreamTest.cipherStreamEncryptDecrypt (  )  throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException

Test cipher stream encryption & decryption work.

Exceptions:
IOException 
void org.ccnx.ccn.test.io.CCNSecureInputStreamTest.contentEncryptDecrypt (  )  throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException

Test content encryption & decryption work.

Exceptions:
IOException 

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:52 2011 for Content-Centric Networking in Java by  doxygen 1.6.3