org.ccnx.ccn.test.profiles.security.access.group.MLACReadWriteTestRepo Class Reference

List of all members.

Public Member Functions

void performanceTest () throws Exception
void createSubDirectoryACL ()
 Create a new ACL for a subdirectory of baseDirectory.
void writeContentInSubdirectory ()
 write a file in the baseDirectory
void readFileAs (int domain, String userName) throws Exception
 Read the file as the specified user.
void updateACL ()
 Add Alice (domain 1) as a reader to the ACL on baseDirectory.

Static Public Member Functions

static void setUpBeforeClass () throws Exception
static void tearDownAfterClass () throws Exception

Package Attributes

int _readsize = 1024
byte[] _read_buffer = new byte[_readsize]

Static Package Attributes

static CCNHandle _handle
static int domainCount = 2
static ContentName[] domainPrefix
static ContentName[] userKeystore
static ContentName[] userNamespace
static ContentName[] groupNamespace
static String[] userNames = {"Alice", "Bob", "Carol"}
static ContentName baseDirectory
static ContentName subdirectory
static ContentName nodeName
static CreateUserData[] cua
static final int blockSize = 8096
static final int contentSizeInBlocks = 100
static Random rnd
static CCNHandle _AliceHandle
static GroupAccessControlManager _AliceACM
static Level[] logLevels

Member Function Documentation

void org.ccnx.ccn.test.profiles.security.access.group.MLACReadWriteTestRepo.createSubDirectoryACL (  ) 

Create a new ACL for a subdirectory of baseDirectory.

Set Alice (domain 0) as a manager and Bob and Carol (both domain 1) as readers

void org.ccnx.ccn.test.profiles.security.access.group.MLACReadWriteTestRepo.readFileAs ( int  domain,
String  userName 
) throws Exception

Read the file as the specified user.

Parameters:
userName the name of the user
Exceptions:
AccessDeniedException 

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