Feature #2260
closedKeyChain component indicator
Description
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:
[scheme]:[location]
scheme
: either starts withtpm-
orpib-
, followed by the exact type of the implementation, e.g.,tpm-osxkeychain
,tpm-file
, andpib-sqlite3
.loaction
: interpreted by specific component implementation. Missinglocation
means the default location.
Here are some examples:
tpm-file: // a file TPM at the default location (e.g., home dir)
tpm-osxkeychain:ndn // an osx keychain with name "ndn"
pib-sqlite3:/example/dir // a pib at /example/dir
Updated by Junxiao Shi about 10 years ago
- Start date deleted (
12/02/2014)
Consider giving it a prefix such as ndn:/localhost/keychain
to make it clear that it's an indicator, not a routable Name.
Similar design is seen in Strategy Name, and identity Name of DigestSha256 signing.
Updated by Yingdi Yu about 10 years ago
I would like to use the "ndn:" prefix if it explicitly specify that the name after it is just an indicator.
btw, I am not familiar with the "ndn:" prefix, any reference about how to use it?
Updated by Yingdi Yu about 10 years ago
- Blocks Task #2242: Pair up SecPublicInfo and SecTpm added
Updated by Yingdi Yu about 10 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 80
Updated by Alex Afanasyev about 10 years ago
Do we really need to have such a class? It is just a KeyChain component will be identified by the name, but what is the value of having a special class for that?
Updated by Yingdi Yu about 10 years ago
I take the class as a parser or checker of the name
Updated by Yingdi Yu about 10 years ago
change my mind. I will simply provide two static checking methods of SecPublicInfo, so no need to keep a separate class.
bool
SecPublicInfo::isValidPibLocator(const Name& pibLocator);
bool
SecPublicInfo::isValidTpmLocator(const Name& tpmLocator);
Updated by Yingdi Yu about 10 years ago
Or we can put it into KeyChain, given KeyChain is the only class that really need a correct TpmLocator/PibLocator.
Updated by Yingdi Yu about 10 years ago
- Description updated (diff)
Turns out that using name as indicators is a bad idea. The indicator should be easy to write in configuration. However, encoding directory in name may cause some confusions and may cause the name difficult to write. So I change it back to URI-style expression.
Updated by Yingdi Yu about 10 years ago
- Status changed from In Progress to Code review
- % Done changed from 80 to 100
Updated by Alex Afanasyev almost 10 years ago
- Status changed from Code review to Closed
- Target version set to v0.3
Updated by Alex Afanasyev over 9 years ago
- Related to Task #1906: Write documentation about client.conf added