/* * ASN.1 string type * (C) 1999-2010 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_ASN1_STRING_H_ #define BOTAN_ASN1_STRING_H_ #include namespace Botan { /** * Simple String */ class BOTAN_PUBLIC_API(2,0) ASN1_String final : public ASN1_Object { public: void encode_into(class DER_Encoder&) const override; void decode_from(class BER_Decoder&) override; std::string value() const; std::string iso_8859() const; ASN1_Tag tagging() const; explicit ASN1_String(const std::string& = ""); ASN1_String(const std::string&, ASN1_Tag); private: std::string m_iso_8859_str; ASN1_Tag m_tag; }; } #endif