Project

General

Profile

Actions

Feature #3281

closed

Represent SigningInfo as string

Added by Junxiao Shi over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Security
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Develop a string representation for SigningInfo.

Currently, SigningInfo can be constructed from two value:

  • signerType chooses whether to use default signing or follow trust model, use a specific signing identity/key/certificate, or perform SHA256 digest signing
  • signerName picks the signing identity or key or certificate; its semantics is dependent upon the value of signerType

In certain cases, an application may want to allow configuration of SigningInfo from its configuration file or from command line options.

Although it's possible to define two configuration or command line options, separately for signerType or signerName, the definition for signerName field can cause confusion because its semantics is dependent.

It's desirable to represent SigningInfo with a single string.

This issue includes:

  • design the string representation of SigningInfo
  • implement the parsing procedure as a SigningInfo constructor overload
  • implement the encoding procedure as the stream output operator of SigningInfo type

Related issues 1 (0 open1 closed)

Blocks ndn-cxx - Bug #3365: SigningInfo(std::string) does not set DigestAlgorithmClosedSpencer Lee12/20/2015

Actions
Actions

Also available in: Atom PDF