Botan 1.10.17
asn1_str.h
Go to the documentation of this file.
1/*
2* ASN.1 string type
3* (C) 1999-2010 Jack Lloyd
4*
5* Distributed under the terms of the Botan license
6*/
7
8#ifndef BOTAN_ASN1_STRING_H__
9#define BOTAN_ASN1_STRING_H__
10
11#include <botan/asn1_int.h>
12
13namespace Botan {
14
15/**
16* Simple String
17*/
18class BOTAN_DLL ASN1_String : public ASN1_Object
19 {
20 public:
21 void encode_into(class DER_Encoder&) const;
22 void decode_from(class BER_Decoder&);
23
24 std::string value() const;
25 std::string iso_8859() const;
26
27 ASN1_Tag tagging() const;
28
29 ASN1_String(const std::string& = "");
30 ASN1_String(const std::string&, ASN1_Tag);
31 private:
32 std::string iso_8859_str;
33 ASN1_Tag tag;
34 };
35
36}
37
38#endif
std::string iso_8859() const
Definition asn1_str.cpp:95
ASN1_String(const std::string &="")
Definition asn1_str.cpp:86
void encode_into(class DER_Encoder &) const
Definition asn1_str.cpp:119
std::string value() const
Definition asn1_str.cpp:103
void decode_from(class BER_Decoder &)
Definition asn1_str.cpp:130
ASN1_Tag tagging() const
Definition asn1_str.cpp:111
ASN1_Tag
Definition asn1_int.h:19