Add property for protocol family to encoders/decoders.
[shibboleth/cpp-opensaml.git] / saml / saml2 / binding / impl / SAML2MessageDecoder.cpp
index 23191df..05253b2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2009 Internet2
+ *  Copyright 2001-2010 Internet2
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -46,6 +46,11 @@ SAML2MessageDecoder::~SAML2MessageDecoder()
 {
 }
 
+const XMLCh* SAML2MessageDecoder::getProtocolFamily() const
+{
+    return samlconstants::SAML20P_NS;
+}
+
 void SAML2MessageDecoder::extractMessageDetails(
     const XMLObject& message, const GenericRequest& request, const XMLCh* protocol, SecurityPolicy& policy
     ) const