//////////////////////////////////////////////////////////////////////////////// // Copyright 2016 Google Inc. // // This software is licensed under the terms defined in the Widevine Master // License Agreement. For a copy of this agreement, please contact // widevine-licensing@google.com. //////////////////////////////////////////////////////////////////////////////// #ifndef PROVISIONING_SDK_INTERNAL_CERTIFICATES_TEST_CERTIFICATES_H_ #define PROVISIONING_SDK_INTERNAL_CERTIFICATES_TEST_CERTIFICATES_H_ #include namespace widevine { // This class contains DER-encoded test certificates. The keys for these // certificates came from common/rsa_test_keys.h. class TestCertificates { public: TestCertificates(); ~TestCertificates(); const std::string& single_certificate_chain_der() const { return single_certificate_chain_der_; } const std::string& valid_certificate_chain_der() const { return valid_certificate_chain_der_; } const std::string& valid_certificate_public_key_der() const { return valid_certificate_public_key_der_; } const std::string& expired_certificate_chain_der() const { return expired_certificate_chain_der_; } const std::string& backwards_certificate_chain_der() const { return backwards_certificate_chain_der_; } const std::string& invalid_certificate_chain_der() const { return invalid_certificate_chain_der_; } private: TestCertificates(const TestCertificates&) = delete; TestCertificates& operator=(const TestCertificates&) = delete; std::string single_certificate_chain_der_; // leaf + intermediate certificates. std::string valid_certificate_chain_der_; std::string valid_certificate_public_key_der_; std::string expired_certificate_chain_der_; // intermediate + leaf certificates. std::string backwards_certificate_chain_der_; std::string invalid_certificate_chain_der_; }; } // namespace widevine #endif // PROVISIONING_SDK_INTERNAL_CERTIFICATES_TEST_CERTIFICATES_H_