Implement KeysCollectionDocument

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.6
    • Affects Version/s: 3.5.5
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-04-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Implement class for parsing and serializing a admin.system.keys document:

      {
          _id: <int>,
          purpose: 'signLogicalTime',
          key: <20 byte key generated with secure PRNG in BinData>,
          expiresAt: <LogicalTime, currently Timestamp format>
      }
      
      class KeysCollectionDocument {
      public:
          KeysCollectionDocument(long long keyId, std::string purpose, TimeProofService::Key key, LogicalTime expiresAt);
          static StatusWith<TypeKeys> fromBSON(const BSONObj& doc);
          BSONObj toBSON() const;
      
          // getter methods
      };
      

              Assignee:
              Jack Mulrow
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: