1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef CRLiteTimestamp_h
8 #define CRLiteTimestamp_h
10 #include "nsICertStorage.h"
11 #include "SignedCertificateTimestamp.h"
13 namespace mozilla::psm
{
15 class CRLiteTimestamp final
: public nsICRLiteTimestamp
{
18 NS_DECL_NSICRLITETIMESTAMP
20 CRLiteTimestamp() : mTimestamp(0) {}
21 explicit CRLiteTimestamp(const ct::SignedCertificateTimestamp
& sct
)
22 : mLogID(Span(sct
.logId
)), mTimestamp(sct
.timestamp
) {}
25 ~CRLiteTimestamp() = default;
27 nsTArray
<uint8_t> mLogID
;
31 } // namespace mozilla::psm
33 #endif // CRLiteTimestamp_h