Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28605

Implement KeysCollectionDocument

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.6
    • 3.5.5
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2017-04-17

    Description

      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
      };
      

      Attachments

        Activity

          People

            jack.mulrow@mongodb.com Jack Mulrow
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: