/* * Common ASN.1 Objects * (C) 1999-2007 Jack Lloyd * 2007 Yves Jerschow * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_ASN1_ALT_NAME_H__ #define BOTAN_ASN1_ALT_NAME_H__ #include #include #include #include namespace Botan { /** * Alternative Name */ class BOTAN_DLL AlternativeName : public ASN1_Object { public: void encode_into(class DER_Encoder&) const override; void decode_from(class BER_Decoder&) override; std::multimap contents() const; void add_attribute(const std::string&, const std::string&); std::multimap get_attributes() const; void add_othername(const OID&, const std::string&, ASN1_Tag); std::multimap get_othernames() const; bool has_items() const; AlternativeName(const std::string& = "", const std::string& = "", const std::string& = "", const std::string& = ""); private: std::multimap m_alt_info; std::multimap m_othernames; }; } #endif