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 |
Classes | |
class | StreamFactory |
void org.ccnx.ccn.test.io.CCNSecureInputStreamTest.cipherEncryptDecrypt | ( | ) | throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, ContentEncodingException |
Test cipher encryption & decryption work.
ContentEncodingException |
void org.ccnx.ccn.test.io.CCNSecureInputStreamTest.cipherStreamEncryptDecrypt | ( | ) | throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException |
Test cipher stream encryption & decryption work.
IOException |
void org.ccnx.ccn.test.io.CCNSecureInputStreamTest.contentEncryptDecrypt | ( | ) | throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException |
Test content encryption & decryption work.
IOException |