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

Implement KeysCollectionDocument

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.5.5
    • 3.5.6
    • 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

        Issue Links

          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: