Feature #2260
Updated by Yingdi Yu almost 11 years ago
We need an expression to indicate a particular KeyChain component (e.g., a instance of Pib or Tpm).
Such an indicator can facilitate KeyChain configuration.
The indicator is defined as a name with following naming convention:
ndn:/localhost/keychain/[component_class]/[component_type]
ndn:/localhost/keychain/[component_class]/[component_type]/[component_location]
Note that this name is just an indicator, i.e., it is not designed to be bound with any data.
* component_class: either `SecTpm` or `SecPib`.
* component_type: depends on component class. For Tpm, we define two types: `OsxKeyChain` and `File`. For Pib, we define one types: `Sqlite3`. Another Pib type `LocalService` will be supported later.
* component_location: interpreted by specific component implementation. Missing component_location means the default location.
Here are some examples:
ndn:/localhost/keychain/SecTpm/File ndn:/localhost/keychain/SecTpm/OsxKeyChain/login
ndn:/localhost/keychain/SecTpm/File/"/example/dir" // The last component is interpreted as a file TPM at the default location (e.g., home dir) path
ndn:/localhost/keychain/SecTpm/OsxKeyChain/ndn ndn:/localhost/keychain/SecPib/Sqlite3/"example/dir" // an osx keychain with name "ndn"
ndn:/localhost/keychain/SecPib/Sqlite3/"/example/dir" // The last component is interpreted as a pib at /example/dir path