21 ::std::unique_ptr<::Certificate> mParentCertificate;
31 MCAPI int64 getExpirationDate()
const;
33 MCAPI ::std::string getIdentityPublicKey()
const;
35 MCAPI int64 getNotBeforeDate()
const;
37 MCAPI_C ::Certificate& getRootParentCertificate();
39 MCAPI
bool validate(int64 currentTime,
bool isSelfSigned,
bool checkExpired);
47 MCAPI_C static ::std::unique_ptr<::Certificate> addAuthorityToCertificate(
51 ::std::string
const& identityPublicKey,
52 ::std::unique_ptr<::Certificate> certificate
55 MCAPI_C static ::std::unique_ptr<::WebToken> createWebToken(
59 ::std::string
const& identityPublicKey,
60 bool isCertificateAuthority,
64 MCAPI_C static ::std::unique_ptr<::Certificate> createWrappedCertificate(
68 ::std::string
const& identityPublicKey,
69 bool isCertificateAuthority,
71 ::std::unique_ptr<::Certificate> parentCertificate