Botan  1.11.15
src/lib/asn1/asn1_attribute.h
Go to the documentation of this file.
00001 /*
00002 * ASN.1 Attribute
00003 * (C) 1999-2007,2012 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_ASN1_ATTRIBUTE_H__
00009 #define BOTAN_ASN1_ATTRIBUTE_H__
00010 
00011 #include <botan/asn1_obj.h>
00012 #include <botan/asn1_oid.h>
00013 #include <vector>
00014 
00015 namespace Botan {
00016 
00017 /**
00018 * Attribute
00019 */
00020 class BOTAN_DLL Attribute : public ASN1_Object
00021    {
00022    public:
00023       void encode_into(class DER_Encoder& to) const;
00024       void decode_from(class BER_Decoder& from);
00025 
00026       OID oid;
00027       std::vector<byte> parameters;
00028 
00029       Attribute() {}
00030       Attribute(const OID&, const std::vector<byte>&);
00031       Attribute(const std::string&, const std::vector<byte>&);
00032    };
00033 
00034 }
00035 
00036 #endif