NodeKey { public boolean isDerivedNodeKey() { return (!nodeName().isPrefixOf(storedNodeKeyName())); } NodeKey(ContentName nodeKeyName, byte [] unwrappedNodeKey);  NodeKey(ContentName nodeKeyName, Key unwrappedNodeKey); protected  NodeKey(ContentName nodeName, byte [] derivedNodeKey, 
					  ContentName ancestorNodeKeyName, byte [] ancestorNodeKeyID); NodeKey computeDescendantNodeKey(ContentName descendantNodeName, String keyLabel); NodeKey computeDescendantNodeKey(ContentName descendantNodeName); ContentName nodeName(); ContentName storedNodeKeyName(); byte [] storedNodeKeyID(); Key nodeKey(); boolean isDerivedNodeKey(); boolean isNullNodeKey(); static byte [] nullNodeKeyID(); CCNTime nodeKeyVersion(); byte [] generateKeyID(); static byte [] generateKeyID(byte [] key); static byte [] generateKeyID(Key key); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final int DEFAULT_NODE_KEY_LENGTH; static final String DEFAULT_NODE_KEY_ALGORITHM; static final String DEFAULT_KEY_LABEL; static final byte [] NULL_NODE_KEY_ID; }
@Test public void testIsDerived(){ Log.info(Log.FAC_TEST, "Starting testIsDerived"); Assert.assertFalse(testNodeKey.isDerivedNodeKey()); Assert.assertTrue(descendantNodeKey1.isDerivedNodeKey()); Assert.assertTrue(descendantNodeKey2.isDerivedNodeKey()); Assert.assertTrue(descendantNodeKey3.isDerivedNodeKey()); Log.info(Log.FAC_TEST, "Completed testIsDerived"); }