X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fattribute%2FAttributeDecoder.h;h=3f9c85b484a7a2e2ab86a175fcd57e4e6774035d;hb=3031c89c1e9110c5da7710b5694ff863d29ae28c;hp=e11ce75f0f22424844479039546a21a03d47855f;hpb=b85fe8767c9727abe2bbf44722d73dbb6a9ad603;p=shibboleth%2Fsp.git diff --git a/shibsp/attribute/AttributeDecoder.h b/shibsp/attribute/AttributeDecoder.h index e11ce75..3f9c85b 100644 --- a/shibsp/attribute/AttributeDecoder.h +++ b/shibsp/attribute/AttributeDecoder.h @@ -35,7 +35,16 @@ namespace shibsp { { MAKE_NONCOPYABLE(AttributeDecoder); protected: - AttributeDecoder() {} + /** + * Constructor. + * + * @param e root of DOM to configure the decoder + */ + AttributeDecoder(const xercesc::DOMElement* e); + + /** Flag for case sensitivity of decoded attributes. */ + bool m_caseSensitive; + public: virtual ~AttributeDecoder() {} @@ -53,14 +62,15 @@ namespace shibsp { ) const=0; }; - /** Decodes SimpleAttributes */ - #define SIMPLE_ATTRIBUTE_DECODER "Simple" + + /** Decodes into a SimpleAttribute. */ + extern SHIBSP_API xmltooling::QName StringAttributeDecoderType; - /** Decodes ScopedAttributes */ - #define SCOPED_ATTRIBUTE_DECODER "Scoped" + /** Decodes into a ScopedAttribute. */ + extern SHIBSP_API xmltooling::QName ScopedAttributeDecoderType; - /** Decodes NameIDAttributes */ - #define NAMEID_ATTRIBUTE_DECODER "NameID" + /** Decodes into a NameIDAttribute. */ + extern SHIBSP_API xmltooling::QName NameIDAttributeDecoderType; /** Registers built-in AttributeDecoders into the runtime. */ void registerAttributeDecoders();