#ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSET_H_
#define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSET_H_
#include <string>
#include <vector>
namespace net::transport_security_state {
class Pinset {
public:
explicit Pinset(std::string name);
Pinset(const Pinset&) = delete;
Pinset& operator=(const Pinset&) = delete;
~Pinset();
const std::string& name() const { return name_; }
const std::vector<std::string>& static_spki_hashes() const {
return static_spki_hashes_;
}
const std::vector<std::string>& bad_static_spki_hashes() const {
return bad_static_spki_hashes_;
}
void AddStaticSPKIHash(const std::string& hash_name);
void AddBadStaticSPKIHash(const std::string& hash_name);
private:
std::string name_;
std::vector<std::string> static_spki_hashes_;
std::vector<std::string> bad_static_spki_hashes_;
};
}
#endif