e->setAttributeNS(NULL,SHIB_L(Scope),m_scopes[index]);
}
-ScopedAttribute::ScopedAttribute(const XMLCh* name, const XMLCh* ns, long lifetime,
+ScopedAttribute::ScopedAttribute(const XMLCh* name, const XMLCh* ns, const saml::QName* type, long lifetime,
const saml::Iterator<const XMLCh*>& scopes,
const saml::Iterator<const XMLCh*>& values)
- : SAMLAttribute(name,ns,NULL,lifetime,values)
+ : SAMLAttribute(name,ns,type,lifetime,values)
{
if (scopes.size()!=values.size())
throw MalformedException(SAMLException::RESPONDER,"ScopedAttribute() requires the number of scopes to equal the number of values");
SAMLObject* ScopedAttribute::clone() const
{
- return new ScopedAttribute(m_name,m_namespace,m_lifetime,m_scopes,m_values);
+ return new ScopedAttribute(m_name,m_namespace,m_type,m_lifetime,m_scopes,m_values);
}
class ScopedAttribute : public saml::SAMLAttribute
{
public:
- ScopedAttribute(const XMLCh* name, const XMLCh* ns, long lifetime=0,
+ ScopedAttribute(const XMLCh* name, const XMLCh* ns, const saml::QName* type=NULL, long lifetime=0,
const saml::Iterator<const XMLCh*>& scopes=EMPTY(const XMLCh*),
const saml::Iterator<const XMLCh*>& values=EMPTY(const XMLCh*));
ScopedAttribute(DOMElement* e);