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

Implement KeysCollectionDocument

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.5
    • Fix Version/s: 3.5.6
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      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

              Assignee:
              jack.mulrow Jack Mulrow
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: