00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef XSECALGMAPPER_INCLUDE
00028 #define XSECALGMAPPER_INCLUDE
00029
00030
00031
00032 #include <xsec/framework/XSECDefs.hpp>
00033
00034 #include <vector>
00035
00036 class XSECAlgorithmHandler;
00037
00049 class XSECAlgorithmMapper {
00050
00051 public:
00052
00055
00056 XSECAlgorithmMapper(void);
00057 ~XSECAlgorithmMapper();
00058
00060
00063
00064 static const XMLCh s_defaultEncryptionMapping[];
00065
00068
00073 XSECAlgorithmHandler * mapURIToHandler(const XMLCh * URI) const;
00074
00076
00079
00084 void registerHandler(const XMLCh * URI, const XSECAlgorithmHandler & handler);
00085
00087
00088 private:
00089
00090 struct MapperEntry {
00091
00092 XMLCh * mp_uri;
00093 XSECAlgorithmHandler * mp_handler;
00094
00095 };
00096
00097 MapperEntry * findEntry(const XMLCh * URI) const;
00098
00099 #if defined(XSEC_NO_NAMESPACES)
00100 typedef vector<MapperEntry *> MapperEntryVectorType;
00101 #else
00102 typedef std::vector<MapperEntry *> MapperEntryVectorType;
00103 #endif
00104
00105 mutable MapperEntryVectorType m_mapping;
00106
00107 };
00108
00109
00110
00111 #endif
00112