This is a network-based implementation of key manager. More...
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 |
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.
org.ccnx.ccn.impl.security.keys.NetworkKeyManager.NetworkKeyManager | ( | String | userName, | |
ContentName | keystoreName, | |||
PublisherPublicKeyDigest | publisher, | |||
char[] | password | |||
) | throws ConfigurationException, IOException |
Constructor.
userName | ||
keystoreName | ||
publisher | ||
password |
ConfigurationException | ||
IOException |
Tuple<KeyStoreInfo, OutputStream> org.ccnx.ccn.impl.security.keys.NetworkKeyManager.createKeyStoreWriteStream | ( | ) | throws IOException [protected] |
Override to give different storage behavior.
Output stream is CCN
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.
ConfigurationException |
Reimplemented from org.ccnx.ccn.impl.security.keys.BasicKeyManager.