org.ccnx.ccn.test.io.content.WrappedKeyTest Class Reference

Test both encoding/decoding of WrappedKey data structures and writing them to CCN using WrappedKeyObjects. More...

List of all members.

Public Member Functions

void setupTest () throws Exception
 Do this in the first test.
void testWrapUnwrapKey () throws Exception
void testWrappedKeyByteArrayStringStringStringByteArrayByteArray () throws Exception
void testDecodeInputStream () throws Exception
void testWrappedKeyObject () throws Exception

Static Public Member Functions

static void setUpBeforeClass () throws Exception

Static Public Attributes

static boolean setupDone = false
static KeyPair wrappingKeyPair = null
static KeyPair wrappedKeyPair = null
static KeyPair wrappedDHKeyPair = null
static KeyPair wrappedDSAKeyPair = null
static SecretKeySpec wrappingAESKey = null
static SecretKeySpec wrappedAESKey = null
static String aLabel = "FileEncryptionKeys"
static byte[] wrappingKeyID = null
static ContentName wrappingKeyName = null
static ContentName storedKeyName = null
static byte[] dummyWrappedKey = new byte[64]

Static Package Attributes

static CCNTestHelper testHelper = new CCNTestHelper(PublicKeyObjectTestRepo.class)
 Handle naming for the test.

Detailed Description

Test both encoding/decoding of WrappedKey data structures and writing them to CCN using WrappedKeyObjects.

Move tests that require either unlimited-strength crypto or algorithms that BouncyCastle does not support on all platforms/versions to the expanded tests. See apps/examples/ExpandedCryptoTests.


Member Function Documentation

void org.ccnx.ccn.test.io.content.WrappedKeyTest.setupTest (  )  throws Exception

Do this in the first test.

Were doing it in setupBeforeClass, but I think it was failing sometimes, possibly because it was too slow.

Exceptions:
Exception 

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