org.ccnx.ccn.impl.security.keys.NetworkKeyManager Class Reference

This is a network-based implementation of key manager. More...

List of all members.

Public Member Functions

 NetworkKeyManager (String userName, ContentName keystoreName, PublisherPublicKeyDigest publisher, char[] password) throws ConfigurationException, IOException
 Constructor.
URI getConfigurationDataURI ()
 Return a file URI pointing at our configuration data directory.

Protected Member Functions

KeyStoreInfo loadKeyStore () throws ConfigurationException, IOException
 Reads the user's keys from CCN.
CCNTime getKeyStoreVersion (OutputStream out) throws IOException
Tuple< KeyStoreInfo, OutputStream > createKeyStoreWriteStream () throws IOException
 Override to give different storage behavior.

Package Attributes

ContentName _keystoreName
PublisherPublicKeyDigest _publisher

Detailed Description

This is a network-based implementation of key manager.

In comparison with BasicKeyManager, this class reads (or writes) the user's private key (as a java keystore) from (or to) CCN.

See also:
BasicKeyManager, KeyManager

Constructor & Destructor Documentation

org.ccnx.ccn.impl.security.keys.NetworkKeyManager.NetworkKeyManager ( String  userName,
ContentName  keystoreName,
PublisherPublicKeyDigest  publisher,
char[]  password 
) throws ConfigurationException, IOException

Constructor.

Parameters:
userName 
keystoreName 
publisher 
password 
Exceptions:
ConfigurationException 
IOException 

Member Function Documentation

Tuple<KeyStoreInfo, OutputStream> org.ccnx.ccn.impl.security.keys.NetworkKeyManager.createKeyStoreWriteStream (  )  throws IOException [protected]

Override to give different storage behavior.

Output stream is CCN

Returns:
Exceptions:
ContentEncodingException 
IOException 

Reimplemented from org.ccnx.ccn.impl.security.keys.BasicKeyManager.

Reimplemented in org.ccnx.ccn.impl.security.keys.RepositoryKeyManager.

KeyStoreInfo org.ccnx.ccn.impl.security.keys.NetworkKeyManager.loadKeyStore (  )  throws ConfigurationException, IOException [protected]

Reads the user's keys from CCN.

Exceptions:
ConfigurationException 

Reimplemented from org.ccnx.ccn.impl.security.keys.BasicKeyManager.


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