2 * Copyright 2001-2006 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * Implementation classes for SAML 2.0 Protocols schema
24 #include "exceptions.h"
25 #include "saml/encryption/EncryptedKeyResolver.h"
26 #include "saml2/core/Protocols.h"
28 #include <xmltooling/AbstractChildlessElement.h>
29 #include <xmltooling/AbstractComplexElement.h>
30 #include <xmltooling/AbstractElementProxy.h>
31 #include <xmltooling/AbstractSimpleElement.h>
32 #include <xmltooling/encryption/Decrypter.h>
33 #include <xmltooling/impl/AnyElement.h>
34 #include <xmltooling/io/AbstractXMLObjectMarshaller.h>
35 #include <xmltooling/io/AbstractXMLObjectUnmarshaller.h>
36 #include <xmltooling/util/XMLHelper.h>
39 #include <xercesc/util/XMLUniDefs.hpp>
41 using namespace opensaml::saml2p;
42 using namespace opensaml::saml2;
43 using namespace opensaml;
44 using namespace xmlsignature;
45 using namespace xmlencryption;
46 using namespace xmltooling;
49 #if defined (_MSC_VER)
50 #pragma warning( push )
51 #pragma warning( disable : 4250 4251 )
57 DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,Artifact);
58 DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,GetComplete);
59 DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,NewID);
60 DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,RequesterID);
61 DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,SessionIndex);
62 DECL_XMLOBJECTIMPL_SIMPLE(SAML_DLLLOCAL,StatusMessage);
65 //TODO need unit test for this, using objects from another namespace
66 class SAML_DLLLOCAL ExtensionsImpl : public virtual Extensions,
67 public AbstractElementProxy,
68 public AbstractDOMCachingXMLObject,
69 public AbstractXMLObjectMarshaller,
70 public AbstractXMLObjectUnmarshaller
73 virtual ~ExtensionsImpl() {}
75 ExtensionsImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
76 : AbstractXMLObject(nsURI, localName, prefix, schemaType) {
79 ExtensionsImpl(const ExtensionsImpl& src)
80 : AbstractXMLObject(src), AbstractElementProxy(src), AbstractDOMCachingXMLObject(src) {
81 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
83 getXMLObjects().push_back((*i)->clone());
88 IMPL_XMLOBJECT_CLONE(Extensions);
91 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
93 const XMLCh* nsURI=root->getNamespaceURI();
94 if (!XMLString::equals(nsURI,SAMLConstants::SAML20P_NS) && nsURI && *nsURI) {
95 getXMLObjects().push_back(childXMLObject);
99 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
103 class SAML_DLLLOCAL StatusCodeImpl : public virtual StatusCode,
104 public AbstractComplexElement,
105 public AbstractDOMCachingXMLObject,
106 public AbstractXMLObjectMarshaller,
107 public AbstractXMLObjectUnmarshaller
112 m_children.push_back(NULL);
113 m_pos_StatusCode=m_children.begin();
116 virtual ~StatusCodeImpl() {}
118 StatusCodeImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
119 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
124 StatusCodeImpl(const StatusCodeImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
126 setValue(src.getValue());
127 if (src.getStatusCode())
128 setStatusCode(src.getStatusCode()->cloneStatusCode());
131 IMPL_XMLOBJECT_CLONE(StatusCode);
132 IMPL_STRING_ATTRIB(Value);
133 IMPL_TYPED_CHILD(StatusCode);
136 void marshallAttributes(DOMElement* domElement) const {
137 MARSHALL_STRING_ATTRIB(Value,VALUE,NULL);
140 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
141 PROC_TYPED_CHILD(StatusCode,SAMLConstants::SAML20P_NS,false);
142 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
145 void processAttribute(const DOMAttr* attribute) {
146 PROC_STRING_ATTRIB(Value,VALUE,NULL);
147 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
151 //TODO need unit tests for non-SAML namespace children
152 class SAML_DLLLOCAL StatusDetailImpl : public virtual StatusDetail,
153 public AbstractComplexElement,
154 public AbstractDOMCachingXMLObject,
155 public AbstractXMLObjectMarshaller,
156 public AbstractXMLObjectUnmarshaller
159 virtual ~StatusDetailImpl() {}
161 StatusDetailImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
162 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
164 StatusDetailImpl(const StatusDetailImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
165 VectorOf(XMLObject) v=getDetails();
166 for (vector<XMLObject*>::const_iterator i=src.m_Details.begin(); i!=src.m_Details.end(); i++) {
168 v.push_back((*i)->clone());
173 IMPL_XMLOBJECT_CLONE(StatusDetail);
174 IMPL_XMLOBJECT_CHILDREN(Detail,m_children.end());
177 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
178 getDetails().push_back(childXMLObject);
179 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
184 class SAML_DLLLOCAL StatusImpl : public virtual Status,
185 public AbstractComplexElement,
186 public AbstractDOMCachingXMLObject,
187 public AbstractXMLObjectMarshaller,
188 public AbstractXMLObjectUnmarshaller
192 m_StatusMessage=NULL;
194 m_children.push_back(NULL);
195 m_children.push_back(NULL);
196 m_children.push_back(NULL);
197 m_pos_StatusCode=m_children.begin();
198 m_pos_StatusMessage=m_pos_StatusCode;
199 ++m_pos_StatusMessage;
200 m_pos_StatusDetail=m_pos_StatusMessage;
201 ++m_pos_StatusDetail;
204 virtual ~StatusImpl() { }
206 StatusImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
207 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
212 StatusImpl(const StatusImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
214 if (src.getStatusCode())
215 setStatusCode(src.getStatusCode()->cloneStatusCode());
216 if (src.getStatusMessage())
217 setStatusMessage(src.getStatusMessage()->cloneStatusMessage());
218 if (src.getStatusDetail())
219 setStatusDetail(src.getStatusDetail()->cloneStatusDetail());
222 IMPL_XMLOBJECT_CLONE(Status);
223 IMPL_TYPED_CHILD(StatusCode);
224 IMPL_TYPED_CHILD(StatusMessage);
225 IMPL_TYPED_CHILD(StatusDetail);
229 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
230 PROC_TYPED_CHILD(StatusCode,SAMLConstants::SAML20P_NS,false);
231 PROC_TYPED_CHILD(StatusMessage,SAMLConstants::SAML20P_NS,false);
232 PROC_TYPED_CHILD(StatusDetail,SAMLConstants::SAML20P_NS,false);
233 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
239 class SAML_DLLLOCAL RequestImpl : public virtual Request,
240 public AbstractComplexElement,
241 public AbstractDOMCachingXMLObject,
242 public AbstractXMLObjectMarshaller,
243 public AbstractXMLObjectUnmarshaller
254 m_children.push_back(NULL);
255 m_children.push_back(NULL);
256 m_children.push_back(NULL);
257 m_pos_Issuer=m_children.begin();
258 m_pos_Signature=m_pos_Issuer;
260 m_pos_Extensions=m_pos_Signature;
268 virtual ~RequestImpl() {
269 XMLString::release(&m_ID);
270 XMLString::release(&m_Version);
271 XMLString::release(&m_Destination);
272 XMLString::release(&m_Consent);
273 delete m_IssueInstant;
276 RequestImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
277 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
282 RequestImpl(const RequestImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
285 setVersion(src.getVersion());
286 setIssueInstant(src.getIssueInstant());
287 setDestination(src.getDestination());
288 setConsent(src.getConsent());
290 setIssuer(src.getIssuer()->cloneIssuer());
291 if (src.getSignature())
292 setSignature(src.getSignature()->cloneSignature());
293 if (src.getExtensions())
294 setExtensions(src.getExtensions()->cloneExtensions());
297 const XMLCh* getId() const {
301 //IMPL_TYPED_CHILD(Signature);
302 // Need customized setter.
304 Signature* m_Signature;
305 list<XMLObject*>::iterator m_pos_Signature;
307 Signature* getSignature() const {
311 void setSignature(Signature* sig) {
312 prepareForAssignment(m_Signature,sig);
313 *m_pos_Signature=m_Signature=sig;
314 // Sync content reference back up.
316 m_Signature->setContentReference(new opensaml::ContentReference(*this));
319 IMPL_XMLOBJECT_CLONE(Request);
320 IMPL_STRING_ATTRIB(Version);
321 IMPL_STRING_ATTRIB(ID);
322 IMPL_DATETIME_ATTRIB(IssueInstant,0);
323 IMPL_STRING_ATTRIB(Destination);
324 IMPL_STRING_ATTRIB(Consent);
325 IMPL_TYPED_FOREIGN_CHILD(Issuer,saml2);
326 IMPL_TYPED_CHILD(Extensions);
329 void marshallAttributes(DOMElement* domElement) const {
331 const_cast<RequestImpl*>(this)->m_Version=XMLString::transcode("2.0");
332 MARSHALL_STRING_ATTRIB(Version,VER,NULL);
334 const_cast<RequestImpl*>(this)->m_ID=SAMLConfig::getConfig().generateIdentifier();
335 MARSHALL_ID_ATTRIB(ID,ID,NULL);
336 if (!m_IssueInstant) {
337 const_cast<RequestImpl*>(this)->m_IssueInstantEpoch=time(NULL);
338 const_cast<RequestImpl*>(this)->m_IssueInstant=new DateTime(m_IssueInstantEpoch);
340 MARSHALL_DATETIME_ATTRIB(IssueInstant,ISSUEINSTANT,NULL);
341 MARSHALL_STRING_ATTRIB(Destination,DESTINATION,NULL);
342 MARSHALL_STRING_ATTRIB(Consent,CONSENT,NULL);
345 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
346 PROC_TYPED_FOREIGN_CHILD(Issuer,saml2,SAMLConstants::SAML20_NS,false);
347 PROC_TYPED_FOREIGN_CHILD(Signature,xmlsignature,XMLConstants::XMLSIG_NS,false);
348 PROC_TYPED_CHILD(Extensions,SAMLConstants::SAML20P_NS,false);
349 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
352 void processAttribute(const DOMAttr* attribute) {
353 PROC_ID_ATTRIB(ID,ID,NULL);
354 PROC_STRING_ATTRIB(Version,VER,NULL);
355 PROC_DATETIME_ATTRIB(IssueInstant,ISSUEINSTANT,NULL);
356 PROC_STRING_ATTRIB(Destination,DESTINATION,NULL);
357 PROC_STRING_ATTRIB(Consent,CONSENT,NULL);
358 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
363 class SAML_DLLLOCAL AssertionIDRequestImpl : public virtual AssertionIDRequest, public RequestImpl
366 virtual ~AssertionIDRequestImpl() { }
368 AssertionIDRequestImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
369 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
371 AssertionIDRequestImpl(const AssertionIDRequestImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
372 VectorOf(AssertionIDRef) v=getAssertionIDRefs();
373 for (vector<AssertionIDRef*>::const_iterator i=src.m_AssertionIDRefs.begin(); i!=src.m_AssertionIDRefs.end(); i++) {
375 v.push_back((*i)->cloneAssertionIDRef());
381 IMPL_XMLOBJECT_CLONE(AssertionIDRequest);
382 IMPL_TYPED_FOREIGN_CHILDREN(AssertionIDRef,saml2,m_children.end());
385 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
386 PROC_TYPED_FOREIGN_CHILDREN(AssertionIDRef,saml2,SAMLConstants::SAML20_NS,false);
387 RequestImpl::processChildElement(childXMLObject,root);
391 class SAML_DLLLOCAL SubjectQueryImpl : public virtual SubjectQuery, public RequestImpl
396 m_children.push_back(NULL);
397 m_pos_Subject = m_pos_Extensions;
405 virtual ~SubjectQueryImpl() { }
407 SubjectQueryImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
408 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
413 SubjectQueryImpl(const SubjectQueryImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
415 if (src.getSubject())
416 setSubject(src.getSubject()->cloneSubject());
419 IMPL_XMLOBJECT_CLONE(SubjectQuery);
420 IMPL_TYPED_FOREIGN_CHILD(Subject,saml2);
423 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
424 PROC_TYPED_FOREIGN_CHILD(Subject,saml2,SAMLConstants::SAML20_NS,false);
425 RequestImpl::processChildElement(childXMLObject,root);
430 class SAML_DLLLOCAL RequestedAuthnContextImpl : public virtual RequestedAuthnContext,
431 public AbstractComplexElement,
432 public AbstractDOMCachingXMLObject,
433 public AbstractXMLObjectMarshaller,
434 public AbstractXMLObjectUnmarshaller
440 virtual ~RequestedAuthnContextImpl() {
441 XMLString::release(&m_Comparison);
444 RequestedAuthnContextImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
445 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
450 RequestedAuthnContextImpl(const RequestedAuthnContextImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
452 setComparison(src.getComparison());
453 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
455 AuthnContextClassRef* classref=dynamic_cast<AuthnContextClassRef*>(*i);
457 getAuthnContextClassRefs().push_back(classref->cloneAuthnContextClassRef());
461 AuthnContextDeclRef* declref=dynamic_cast<AuthnContextDeclRef*>(*i);
463 getAuthnContextDeclRefs().push_back(declref->cloneAuthnContextDeclRef());
470 IMPL_XMLOBJECT_CLONE(RequestedAuthnContext);
471 IMPL_STRING_ATTRIB(Comparison);
472 IMPL_TYPED_FOREIGN_CHILDREN(AuthnContextClassRef,saml2,m_children.end());
473 IMPL_TYPED_FOREIGN_CHILDREN(AuthnContextDeclRef,saml2,m_children.end());
476 void marshallAttributes(DOMElement* domElement) const {
477 MARSHALL_STRING_ATTRIB(Comparison,COMPARISON,NULL);
480 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
481 PROC_TYPED_FOREIGN_CHILDREN(AuthnContextClassRef,saml2,SAMLConstants::SAML20_NS,false);
482 PROC_TYPED_FOREIGN_CHILDREN(AuthnContextDeclRef,saml2,SAMLConstants::SAML20_NS,false);
483 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
486 void processAttribute(const DOMAttr* attribute) {
487 PROC_STRING_ATTRIB(Comparison,COMPARISON,NULL);
488 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
493 class SAML_DLLLOCAL AuthnQueryImpl : public virtual AuthnQuery, public SubjectQueryImpl
497 m_RequestedAuthnContext=NULL;
498 m_children.push_back(NULL);
499 m_pos_RequestedAuthnContext = m_pos_Subject;
500 ++m_pos_RequestedAuthnContext;
504 virtual ~AuthnQueryImpl() {
505 XMLString::release(&m_SessionIndex);
508 AuthnQueryImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
509 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
514 AuthnQueryImpl(const AuthnQueryImpl& src) : AbstractXMLObject(src), SubjectQueryImpl(src) {
516 setSessionIndex(src.getSessionIndex());
517 if (src.getRequestedAuthnContext())
518 setRequestedAuthnContext(src.getRequestedAuthnContext()->cloneRequestedAuthnContext());
521 IMPL_XMLOBJECT_CLONE(AuthnQuery);
522 IMPL_STRING_ATTRIB(SessionIndex);
523 IMPL_TYPED_CHILD(RequestedAuthnContext);
526 void marshallAttributes(DOMElement* domElement) const {
527 MARSHALL_STRING_ATTRIB(SessionIndex,SESSIONINDEX,NULL);
528 SubjectQueryImpl::marshallAttributes(domElement);
531 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
532 PROC_TYPED_CHILD(RequestedAuthnContext,SAMLConstants::SAML20P_NS,false);
533 SubjectQueryImpl::processChildElement(childXMLObject,root);
535 void processAttribute(const DOMAttr* attribute) {
536 PROC_STRING_ATTRIB(SessionIndex,SESSIONINDEX,NULL);
537 SubjectQueryImpl::processAttribute(attribute);
541 class SAML_DLLLOCAL AttributeQueryImpl : public virtual AttributeQuery, public SubjectQueryImpl
544 virtual ~AttributeQueryImpl() { }
546 AttributeQueryImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
547 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
549 AttributeQueryImpl(const AttributeQueryImpl& src) : AbstractXMLObject(src), SubjectQueryImpl(src) {
550 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
552 Attribute* attrib=dynamic_cast<Attribute*>(*i);
554 getAttributes().push_back(attrib->cloneAttribute());
562 IMPL_XMLOBJECT_CLONE(AttributeQuery);
563 IMPL_TYPED_FOREIGN_CHILDREN(Attribute,saml2,m_children.end());
566 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
567 PROC_TYPED_FOREIGN_CHILDREN(Attribute,saml2,SAMLConstants::SAML20_NS,false);
568 SubjectQueryImpl::processChildElement(childXMLObject,root);
572 class SAML_DLLLOCAL AuthzDecisionQueryImpl : public virtual AuthzDecisionQuery, public SubjectQueryImpl
577 m_children.push_back(NULL);
578 m_pos_Evidence=m_pos_Subject;
583 virtual ~AuthzDecisionQueryImpl() {
584 XMLString::release(&m_Resource);
587 AuthzDecisionQueryImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
588 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
593 AuthzDecisionQueryImpl(const AuthzDecisionQueryImpl& src) : AbstractXMLObject(src), SubjectQueryImpl(src) {
595 setResource(src.getResource());
596 if (src.getEvidence())
597 setEvidence(src.getEvidence()->cloneEvidence());
598 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
600 Action* action=dynamic_cast<Action*>(*i);
602 getActions().push_back(action->cloneAction());
609 IMPL_XMLOBJECT_CLONE(AuthzDecisionQuery);
610 IMPL_STRING_ATTRIB(Resource);
611 IMPL_TYPED_FOREIGN_CHILDREN(Action,saml2,m_pos_Evidence);
612 IMPL_TYPED_FOREIGN_CHILD(Evidence,saml2);
615 void marshallAttributes(DOMElement* domElement) const {
616 MARSHALL_STRING_ATTRIB(Resource,RESOURCE,NULL);
617 SubjectQueryImpl::marshallAttributes(domElement);
620 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
621 PROC_TYPED_FOREIGN_CHILD(Evidence,saml2,SAMLConstants::SAML20_NS,false);
622 PROC_TYPED_FOREIGN_CHILDREN(Action,saml2,SAMLConstants::SAML20_NS,false);
623 SubjectQueryImpl::processChildElement(childXMLObject,root);
625 void processAttribute(const DOMAttr* attribute) {
626 PROC_STRING_ATTRIB(Resource,RESOURCE,NULL);
627 SubjectQueryImpl::processAttribute(attribute);
631 class SAML_DLLLOCAL NameIDPolicyImpl : public virtual NameIDPolicy,
632 public AbstractChildlessElement,
633 public AbstractDOMCachingXMLObject,
634 public AbstractXMLObjectMarshaller,
635 public AbstractXMLObjectUnmarshaller
639 m_SPNameQualifier=NULL;
640 m_AllowCreate=XMLConstants::XML_BOOL_NULL;
643 virtual ~NameIDPolicyImpl()
645 XMLString::release(&m_Format);
646 XMLString::release(&m_SPNameQualifier);
649 NameIDPolicyImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
650 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
655 NameIDPolicyImpl(const NameIDPolicyImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
657 setFormat(src.getFormat());
658 setSPNameQualifier(src.getSPNameQualifier());
659 AllowCreate(m_AllowCreate);
662 IMPL_XMLOBJECT_CLONE(NameIDPolicy);
663 IMPL_STRING_ATTRIB(Format);
664 IMPL_STRING_ATTRIB(SPNameQualifier);
665 IMPL_BOOLEAN_ATTRIB(AllowCreate);
668 void marshallAttributes(DOMElement* domElement) const {
669 MARSHALL_STRING_ATTRIB(Format,FORMAT,NULL);
670 MARSHALL_STRING_ATTRIB(SPNameQualifier,SPNAMEQUALIFIER,NULL);
671 MARSHALL_BOOLEAN_ATTRIB(AllowCreate,ALLOWCREATE,NULL);
674 void processAttribute(const DOMAttr* attribute) {
675 PROC_STRING_ATTRIB(Format,FORMAT,NULL);
676 PROC_STRING_ATTRIB(SPNameQualifier,SPNAMEQUALIFIER,NULL);
677 PROC_BOOLEAN_ATTRIB(AllowCreate,ALLOWCREATE,NULL);
678 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
682 class SAML_DLLLOCAL IDPEntryImpl : public virtual IDPEntry,
683 public AbstractChildlessElement,
684 public AbstractDOMCachingXMLObject,
685 public AbstractXMLObjectMarshaller,
686 public AbstractXMLObjectUnmarshaller
694 virtual ~IDPEntryImpl()
696 XMLString::release(&m_ProviderID);
697 XMLString::release(&m_Name);
698 XMLString::release(&m_Loc);
701 IDPEntryImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
702 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
707 IDPEntryImpl(const IDPEntryImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
709 setProviderID(src.getProviderID());
710 setName(src.getName());
711 setLoc(src.getLoc());
714 IMPL_XMLOBJECT_CLONE(IDPEntry);
715 IMPL_STRING_ATTRIB(ProviderID);
716 IMPL_STRING_ATTRIB(Name);
717 IMPL_STRING_ATTRIB(Loc);
720 void marshallAttributes(DOMElement* domElement) const {
721 MARSHALL_STRING_ATTRIB(ProviderID,PROVIDERID,NULL);
722 MARSHALL_STRING_ATTRIB(Name,NAME,NULL);
723 MARSHALL_STRING_ATTRIB(Loc,LOC,NULL);
726 void processAttribute(const DOMAttr* attribute) {
727 PROC_STRING_ATTRIB(ProviderID,PROVIDERID,NULL);
728 PROC_STRING_ATTRIB(Name,NAME,NULL);
729 PROC_STRING_ATTRIB(Loc,LOC,NULL);
730 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
734 class SAML_DLLLOCAL IDPListImpl : public virtual IDPList,
735 public AbstractComplexElement,
736 public AbstractDOMCachingXMLObject,
737 public AbstractXMLObjectMarshaller,
738 public AbstractXMLObjectUnmarshaller
742 m_children.push_back(NULL);
743 m_pos_GetComplete=m_children.begin();
747 virtual ~IDPListImpl() { }
749 IDPListImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
750 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
755 IDPListImpl(const IDPListImpl& src)
756 : AbstractXMLObject(src), AbstractComplexElement(src), AbstractDOMCachingXMLObject(src) {
758 if (src.getGetComplete())
759 setGetComplete(src.getGetComplete()->cloneGetComplete());
760 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
762 IDPEntry* entry=dynamic_cast<IDPEntry*>(*i);
764 getIDPEntrys().push_back(entry->cloneIDPEntry());
771 IMPL_XMLOBJECT_CLONE(IDPList);
772 IMPL_TYPED_CHILDREN(IDPEntry,m_pos_GetComplete);
773 IMPL_TYPED_CHILD(GetComplete);
776 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
777 PROC_TYPED_CHILDREN(IDPEntry,SAMLConstants::SAML20P_NS,false);
778 PROC_TYPED_CHILD(GetComplete,SAMLConstants::SAML20P_NS,false);
779 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
784 class SAML_DLLLOCAL ScopingImpl : public virtual Scoping,
785 public AbstractComplexElement,
786 public AbstractDOMCachingXMLObject,
787 public AbstractXMLObjectMarshaller,
788 public AbstractXMLObjectUnmarshaller
793 m_children.push_back(NULL);
794 m_pos_IDPList=m_children.begin();
798 virtual ~ScopingImpl() {
799 XMLString::release(&m_ProxyCount);
802 ScopingImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
803 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
808 ScopingImpl(const ScopingImpl& src)
809 : AbstractXMLObject(src), AbstractComplexElement(src), AbstractDOMCachingXMLObject(src) {
811 setProxyCount(m_ProxyCount);
812 if (src.getIDPList())
813 setIDPList(src.getIDPList()->cloneIDPList());
814 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
816 RequesterID* reqid =dynamic_cast<RequesterID*>(*i);
818 getRequesterIDs().push_back(reqid->cloneRequesterID());
825 IMPL_XMLOBJECT_CLONE(Scoping);
826 IMPL_INTEGER_ATTRIB(ProxyCount);
827 IMPL_TYPED_CHILD(IDPList);
828 IMPL_TYPED_CHILDREN(RequesterID,m_children.end());
831 void marshallAttributes(DOMElement* domElement) const {
832 MARSHALL_INTEGER_ATTRIB(ProxyCount,PROXYCOUNT,NULL);
835 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
836 PROC_TYPED_CHILD(IDPList,SAMLConstants::SAML20P_NS,false);
837 PROC_TYPED_CHILDREN(RequesterID,SAMLConstants::SAML20P_NS,false);
838 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
841 void processAttribute(const DOMAttr* attribute) {
842 PROC_INTEGER_ATTRIB(ProxyCount,PROXYCOUNT,NULL);
843 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
847 class SAML_DLLLOCAL AuthnRequestImpl : public virtual AuthnRequest, public RequestImpl
850 m_ForceAuthn=XMLConstants::XML_BOOL_NULL;
851 m_IsPassive=XMLConstants::XML_BOOL_NULL;
852 m_ProtocolBinding=NULL;
853 m_AssertionConsumerServiceIndex=NULL;
854 m_AssertionConsumerServiceURL=NULL;
855 m_AttributeConsumingServiceIndex=NULL;
861 m_RequestedAuthnContext=NULL;
863 m_children.push_back(NULL);
864 m_children.push_back(NULL);
865 m_children.push_back(NULL);
866 m_children.push_back(NULL);
867 m_children.push_back(NULL);
868 m_pos_Subject=m_pos_Extensions;
870 m_pos_NameIDPolicy=m_pos_Subject;
871 ++m_pos_NameIDPolicy;
872 m_pos_Conditions=m_pos_NameIDPolicy;
874 m_pos_RequestedAuthnContext=m_pos_Conditions;
875 ++m_pos_RequestedAuthnContext;
876 m_pos_Scoping=m_pos_RequestedAuthnContext;
881 virtual ~AuthnRequestImpl() {
882 XMLString::release(&m_ProtocolBinding);
883 XMLString::release(&m_AssertionConsumerServiceURL);
884 XMLString::release(&m_ProviderName);
885 XMLString::release(&m_AssertionConsumerServiceIndex);
886 XMLString::release(&m_AttributeConsumingServiceIndex);
889 AuthnRequestImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
890 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
895 AuthnRequestImpl(const AuthnRequestImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
898 ForceAuthn(m_ForceAuthn);
899 IsPassive(m_IsPassive);
900 setProtocolBinding(src.getProtocolBinding());
901 setAssertionConsumerServiceIndex(m_AssertionConsumerServiceIndex);
902 setAssertionConsumerServiceURL(src.getAssertionConsumerServiceURL());
903 setAttributeConsumingServiceIndex(m_AttributeConsumingServiceIndex);
904 setProviderName(src.getProviderName());
906 if (src.getSubject())
907 setSubject(src.getSubject()->cloneSubject());
908 if (src.getNameIDPolicy())
909 setNameIDPolicy(src.getNameIDPolicy()->cloneNameIDPolicy());
910 if (src.getConditions())
911 setConditions(src.getConditions()->cloneConditions());
912 if (src.getRequestedAuthnContext())
913 setRequestedAuthnContext(src.getRequestedAuthnContext()->cloneRequestedAuthnContext());
914 if (src.getScoping())
915 setScoping(src.getScoping()->cloneScoping());
918 IMPL_XMLOBJECT_CLONE(AuthnRequest);
920 IMPL_BOOLEAN_ATTRIB(ForceAuthn);
921 IMPL_BOOLEAN_ATTRIB(IsPassive);
922 IMPL_STRING_ATTRIB(ProtocolBinding);
923 IMPL_INTEGER_ATTRIB(AssertionConsumerServiceIndex);
924 IMPL_STRING_ATTRIB(AssertionConsumerServiceURL);
925 IMPL_INTEGER_ATTRIB(AttributeConsumingServiceIndex);
926 IMPL_STRING_ATTRIB(ProviderName);
928 IMPL_TYPED_FOREIGN_CHILD(Subject,saml2);
929 IMPL_TYPED_CHILD(NameIDPolicy);
930 IMPL_TYPED_FOREIGN_CHILD(Conditions,saml2);
931 IMPL_TYPED_CHILD(RequestedAuthnContext);
932 IMPL_TYPED_CHILD(Scoping);
935 void marshallAttributes(DOMElement* domElement) const {
936 MARSHALL_BOOLEAN_ATTRIB(ForceAuthn,FORCEAUTHN,NULL);
937 MARSHALL_BOOLEAN_ATTRIB(IsPassive,ISPASSIVE,NULL);
938 MARSHALL_STRING_ATTRIB(ProtocolBinding,PROTOCOLBINDING,NULL);
939 MARSHALL_INTEGER_ATTRIB(AssertionConsumerServiceIndex,ASSERTIONCONSUMERSERVICEINDEX,NULL);
940 MARSHALL_STRING_ATTRIB(AssertionConsumerServiceURL,ASSERTIONCONSUMERSERVICEURL,NULL);
941 MARSHALL_INTEGER_ATTRIB(AttributeConsumingServiceIndex,ATTRIBUTECONSUMINGSERVICEINDEX,NULL);
942 MARSHALL_STRING_ATTRIB(ProviderName,PROVIDERNAME,NULL);
943 RequestImpl::marshallAttributes(domElement);
946 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
947 PROC_TYPED_FOREIGN_CHILD(Subject,saml2,SAMLConstants::SAML20_NS,false);
948 PROC_TYPED_CHILD(NameIDPolicy,SAMLConstants::SAML20P_NS,false);
949 PROC_TYPED_FOREIGN_CHILD(Conditions,saml2,SAMLConstants::SAML20_NS,false);
950 PROC_TYPED_CHILD(RequestedAuthnContext,SAMLConstants::SAML20P_NS,false);
951 PROC_TYPED_CHILD(Scoping,SAMLConstants::SAML20P_NS,false);
952 RequestImpl::processChildElement(childXMLObject,root);
954 void processAttribute(const DOMAttr* attribute) {
955 PROC_BOOLEAN_ATTRIB(ForceAuthn,FORCEAUTHN,NULL);
956 PROC_BOOLEAN_ATTRIB(IsPassive,ISPASSIVE,NULL);
957 PROC_STRING_ATTRIB(ProtocolBinding,PROTOCOLBINDING,NULL);
958 PROC_INTEGER_ATTRIB(AssertionConsumerServiceIndex,ASSERTIONCONSUMERSERVICEINDEX,NULL);
959 PROC_STRING_ATTRIB(AssertionConsumerServiceURL,ASSERTIONCONSUMERSERVICEURL,NULL);
960 PROC_INTEGER_ATTRIB(AttributeConsumingServiceIndex,ATTRIBUTECONSUMINGSERVICEINDEX,NULL);
961 PROC_STRING_ATTRIB(ProviderName,PROVIDERNAME,NULL);
962 RequestImpl::processAttribute(attribute);
966 class SAML_DLLLOCAL StatusResponseImpl : public virtual StatusResponse,
967 public AbstractComplexElement,
968 public AbstractDOMCachingXMLObject,
969 public AbstractXMLObjectMarshaller,
970 public AbstractXMLObjectUnmarshaller
983 m_children.push_back(NULL);
984 m_children.push_back(NULL);
985 m_children.push_back(NULL);
986 m_children.push_back(NULL);
987 m_pos_Issuer=m_children.begin();
988 m_pos_Signature=m_pos_Issuer;
990 m_pos_Extensions=m_pos_Signature;
992 m_pos_Status=m_pos_Extensions;
996 StatusResponseImpl() {
1000 virtual ~StatusResponseImpl() {
1001 XMLString::release(&m_ID);
1002 XMLString::release(&m_InResponseTo);
1003 XMLString::release(&m_Version);
1004 XMLString::release(&m_Destination);
1005 XMLString::release(&m_Consent);
1006 delete m_IssueInstant;
1009 StatusResponseImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1010 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1015 StatusResponseImpl(const StatusResponseImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
1018 setInResponseTo(src.getInResponseTo());
1019 setVersion(src.getVersion());
1020 setIssueInstant(src.getIssueInstant());
1021 setDestination(src.getDestination());
1022 setConsent(src.getConsent());
1023 if (src.getIssuer())
1024 setIssuer(src.getIssuer()->cloneIssuer());
1025 if (src.getSignature())
1026 setSignature(src.getSignature()->cloneSignature());
1027 if (src.getExtensions())
1028 setExtensions(src.getExtensions()->cloneExtensions());
1029 if (src.getStatus())
1030 setStatus(src.getStatus()->cloneStatus());
1033 const XMLCh* getId() const {
1037 //IMPL_TYPED_CHILD(Signature);
1038 // Need customized setter.
1040 Signature* m_Signature;
1041 list<XMLObject*>::iterator m_pos_Signature;
1043 Signature* getSignature() const {
1047 void setSignature(Signature* sig) {
1048 prepareForAssignment(m_Signature,sig);
1049 *m_pos_Signature=m_Signature=sig;
1050 // Sync content reference back up.
1052 m_Signature->setContentReference(new opensaml::ContentReference(*this));
1055 IMPL_XMLOBJECT_CLONE(StatusResponse);
1056 IMPL_STRING_ATTRIB(Version);
1057 IMPL_STRING_ATTRIB(ID);
1058 IMPL_STRING_ATTRIB(InResponseTo);
1059 IMPL_DATETIME_ATTRIB(IssueInstant,0);
1060 IMPL_STRING_ATTRIB(Destination);
1061 IMPL_STRING_ATTRIB(Consent);
1062 IMPL_TYPED_FOREIGN_CHILD(Issuer,saml2);
1063 IMPL_TYPED_CHILD(Extensions);
1064 IMPL_TYPED_CHILD(Status);
1067 void marshallAttributes(DOMElement* domElement) const {
1069 const_cast<StatusResponseImpl*>(this)->m_Version=XMLString::transcode("2.0");
1070 MARSHALL_STRING_ATTRIB(Version,VER,NULL);
1072 const_cast<StatusResponseImpl*>(this)->m_ID=SAMLConfig::getConfig().generateIdentifier();
1073 MARSHALL_ID_ATTRIB(ID,ID,NULL);
1074 if (!m_IssueInstant) {
1075 const_cast<StatusResponseImpl*>(this)->m_IssueInstantEpoch=time(NULL);
1076 const_cast<StatusResponseImpl*>(this)->m_IssueInstant=new DateTime(m_IssueInstantEpoch);
1078 MARSHALL_DATETIME_ATTRIB(IssueInstant,ISSUEINSTANT,NULL);
1079 MARSHALL_STRING_ATTRIB(Destination,DESTINATION,NULL);
1080 MARSHALL_STRING_ATTRIB(Consent,CONSENT,NULL);
1081 MARSHALL_STRING_ATTRIB(InResponseTo,INRESPONSETO,NULL);
1084 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1085 PROC_TYPED_FOREIGN_CHILD(Issuer,saml2,SAMLConstants::SAML20_NS,false);
1086 PROC_TYPED_FOREIGN_CHILD(Signature,xmlsignature,XMLConstants::XMLSIG_NS,false);
1087 PROC_TYPED_CHILD(Extensions,SAMLConstants::SAML20P_NS,false);
1088 PROC_TYPED_CHILD(Status,SAMLConstants::SAML20P_NS,false);
1089 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
1092 void processAttribute(const DOMAttr* attribute) {
1093 PROC_ID_ATTRIB(ID,ID,NULL);
1094 PROC_STRING_ATTRIB(Version,VER,NULL);
1095 PROC_STRING_ATTRIB(InResponseTo,INRESPONSETO,NULL);
1096 PROC_DATETIME_ATTRIB(IssueInstant,ISSUEINSTANT,NULL);
1097 PROC_STRING_ATTRIB(Destination,DESTINATION,NULL);
1098 PROC_STRING_ATTRIB(Consent,CONSENT,NULL);
1099 AbstractXMLObjectUnmarshaller::processAttribute(attribute);
1103 class SAML_DLLLOCAL ResponseImpl : public virtual Response, public StatusResponseImpl
1106 virtual ~ResponseImpl() { }
1108 ResponseImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1109 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
1111 ResponseImpl(const ResponseImpl& src) : AbstractXMLObject(src), StatusResponseImpl(src) {
1112 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
1114 Assertion* assertion=dynamic_cast<Assertion*>(*i);
1116 getAssertions().push_back(assertion->cloneAssertion());
1119 EncryptedAssertion* encAssertion=dynamic_cast<EncryptedAssertion*>(*i);
1121 getEncryptedAssertions().push_back(encAssertion->cloneEncryptedAssertion());
1129 IMPL_XMLOBJECT_CLONE(Response);
1130 IMPL_TYPED_FOREIGN_CHILDREN(Assertion,saml2,m_children.end());
1131 IMPL_TYPED_FOREIGN_CHILDREN(EncryptedAssertion,saml2,m_children.end());
1134 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1135 PROC_TYPED_FOREIGN_CHILDREN(Assertion,saml2,SAMLConstants::SAML20_NS,false);
1136 PROC_TYPED_FOREIGN_CHILDREN(EncryptedAssertion,saml2,SAMLConstants::SAML20_NS,false);
1137 StatusResponseImpl::processChildElement(childXMLObject,root);
1141 class SAML_DLLLOCAL ArtifactResolveImpl : public virtual ArtifactResolve, public RequestImpl
1145 m_children.push_back(NULL);
1146 m_pos_Artifact=m_pos_Extensions;
1150 virtual ~ArtifactResolveImpl() { }
1152 ArtifactResolveImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1153 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1158 ArtifactResolveImpl(const ArtifactResolveImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
1160 if(src.getArtifact())
1161 setArtifact(src.getArtifact()->cloneArtifact());
1164 IMPL_XMLOBJECT_CLONE(ArtifactResolve);
1165 IMPL_TYPED_CHILD(Artifact);
1168 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1169 PROC_TYPED_CHILD(Artifact,SAMLConstants::SAML20P_NS,false);
1170 RequestImpl::processChildElement(childXMLObject,root);
1174 class SAML_DLLLOCAL ArtifactResponseImpl : public virtual ArtifactResponse, public StatusResponseImpl
1178 m_children.push_back(NULL);
1179 m_pos_Payload=m_pos_Status;
1183 virtual ~ArtifactResponseImpl() { }
1185 ArtifactResponseImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1186 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1191 ArtifactResponseImpl(const ArtifactResponseImpl& src) : AbstractXMLObject(src), StatusResponseImpl(src) {
1193 if (src.getPayload())
1194 setPayload(getPayload()->clone());
1198 IMPL_XMLOBJECT_CLONE(ArtifactResponse);
1199 IMPL_XMLOBJECT_CHILD(Payload);
1202 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1203 // These are valid elements for the parent StatusResponse, so don't process these.
1204 // If not one of these, then it must be the payload.
1206 ! XMLHelper::isNodeNamed(root,SAMLConstants::SAML20_NS,saml2::Issuer::LOCAL_NAME) &&
1207 ! XMLHelper::isNodeNamed(root,XMLConstants::XMLSIG_NS,xmlsignature::Signature::LOCAL_NAME) &&
1208 ! XMLHelper::isNodeNamed(root,SAMLConstants::SAML20P_NS,saml2p::Extensions::LOCAL_NAME) &&
1209 ! XMLHelper::isNodeNamed(root,SAMLConstants::SAML20P_NS,saml2p::Status::LOCAL_NAME)
1212 setPayload(childXMLObject);
1216 StatusResponseImpl::processChildElement(childXMLObject,root);
1220 class SAML_DLLLOCAL NewEncryptedIDImpl : public virtual NewEncryptedID,
1221 public AbstractComplexElement,
1222 public AbstractDOMCachingXMLObject,
1223 public AbstractXMLObjectMarshaller,
1224 public AbstractXMLObjectUnmarshaller
1227 m_EncryptedData=NULL;
1228 m_children.push_back(NULL);
1229 m_pos_EncryptedData=m_children.begin();
1233 NewEncryptedIDImpl()
1239 virtual ~NewEncryptedIDImpl() {}
1241 NewEncryptedIDImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1242 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1247 NewEncryptedIDImpl(const NewEncryptedIDImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
1249 if (src.getEncryptedData())
1250 setEncryptedData(src.getEncryptedData()->cloneEncryptedData());
1251 VectorOf(xmlencryption::EncryptedKey) v=getEncryptedKeys();
1252 for (vector<xmlencryption::EncryptedKey*>::const_iterator i=src.m_EncryptedKeys.begin(); i!=src.m_EncryptedKeys.end(); i++) {
1254 v.push_back((*i)->cloneEncryptedKey());
1259 XMLObject* decrypt(KeyResolver* KEKresolver, const XMLCh* recipient) const
1261 if (!m_EncryptedData)
1262 throw DecryptionException("No encrypted data present.");
1263 Decrypter decrypter(KEKresolver, new EncryptedKeyResolver(*this, recipient));
1264 DOMDocumentFragment* frag = decrypter.decryptData(m_EncryptedData);
1265 if (frag->hasChildNodes() && frag->getFirstChild()==frag->getLastChild()) {
1266 DOMNode* plaintext=frag->getFirstChild();
1267 if (plaintext->getNodeType()==DOMNode::ELEMENT_NODE) {
1268 auto_ptr<XMLObject> ret(XMLObjectBuilder::buildOneFromElement(static_cast<DOMElement*>(plaintext)));
1269 ret->releaseThisAndChildrenDOM();
1270 return ret.release();
1274 throw DecryptionException("Decryption did not result in a single element.");
1277 IMPL_XMLOBJECT_CLONE(NewEncryptedID);
1278 EncryptedElementType* cloneEncryptedElementType() const {
1279 return new NewEncryptedIDImpl(*this);
1282 IMPL_TYPED_FOREIGN_CHILD(EncryptedData,xmlencryption);
1283 IMPL_TYPED_FOREIGN_CHILDREN(EncryptedKey,xmlencryption,m_children.end());
1286 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1287 PROC_TYPED_FOREIGN_CHILD(EncryptedData,xmlencryption,XMLConstants::XMLENC_NS,false);
1288 PROC_TYPED_FOREIGN_CHILDREN(EncryptedKey,xmlencryption,XMLConstants::XMLENC_NS,false);
1289 AbstractXMLObjectUnmarshaller::processChildElement(childXMLObject,root);
1293 class SAML_DLLLOCAL TerminateImpl : public virtual Terminate,
1294 public AbstractChildlessElement,
1295 public AbstractDOMCachingXMLObject,
1296 public AbstractXMLObjectMarshaller,
1297 public AbstractXMLObjectUnmarshaller
1300 virtual ~TerminateImpl() { }
1302 TerminateImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1303 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
1305 TerminateImpl(const TerminateImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src) {
1308 IMPL_XMLOBJECT_CLONE(Terminate);
1311 // has no attributes or children
1314 class SAML_DLLLOCAL ManageNameIDRequestImpl : public virtual ManageNameIDRequest, public RequestImpl
1320 m_NewEncryptedID=NULL;
1322 m_children.push_back(NULL);
1323 m_children.push_back(NULL);
1324 m_children.push_back(NULL);
1325 m_children.push_back(NULL);
1326 m_children.push_back(NULL);
1327 m_pos_NameID=m_pos_Extensions;
1329 m_pos_EncryptedID=m_pos_NameID;
1330 ++m_pos_EncryptedID;
1331 m_pos_NewID=m_pos_EncryptedID;
1333 m_pos_NewEncryptedID=m_pos_NewID;
1334 ++m_pos_NewEncryptedID;
1335 m_pos_Terminate=m_pos_NewEncryptedID;
1340 virtual ~ManageNameIDRequestImpl() { }
1342 ManageNameIDRequestImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1343 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1348 ManageNameIDRequestImpl(const ManageNameIDRequestImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
1351 if (src.getNameID())
1352 setNameID(src.getNameID()->cloneNameID());
1353 if (src.getEncryptedID())
1354 setEncryptedID(src.getEncryptedID()->cloneEncryptedID());
1356 setNewID(src.getNewID()->cloneNewID());
1357 if (src.getNewEncryptedID())
1358 setNewEncryptedID(src.getNewEncryptedID()->cloneNewEncryptedID());
1359 if (src.getTerminate())
1360 setTerminate(src.getTerminate()->cloneTerminate());
1364 IMPL_XMLOBJECT_CLONE(ManageNameIDRequest);
1366 IMPL_TYPED_FOREIGN_CHILD(NameID,saml2);
1367 IMPL_TYPED_FOREIGN_CHILD(EncryptedID,saml2);
1368 IMPL_TYPED_CHILD(NewID);
1369 IMPL_TYPED_CHILD(NewEncryptedID);
1370 IMPL_TYPED_CHILD(Terminate);
1373 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1374 PROC_TYPED_FOREIGN_CHILD(NameID,saml2,SAMLConstants::SAML20_NS,false);
1375 PROC_TYPED_FOREIGN_CHILD(EncryptedID,saml2,SAMLConstants::SAML20_NS,false);
1376 PROC_TYPED_CHILD(NewID,SAMLConstants::SAML20P_NS,false);
1377 PROC_TYPED_CHILD(NewEncryptedID,SAMLConstants::SAML20P_NS,false);
1378 PROC_TYPED_CHILD(Terminate,SAMLConstants::SAML20P_NS,false);
1379 RequestImpl::processChildElement(childXMLObject,root);
1383 class SAML_DLLLOCAL ManageNameIDResponseImpl : public virtual ManageNameIDResponse, public StatusResponseImpl
1386 virtual ~ManageNameIDResponseImpl() { }
1388 ManageNameIDResponseImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1389 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
1391 ManageNameIDResponseImpl(const ManageNameIDResponseImpl& src) : AbstractXMLObject(src), StatusResponseImpl(src) {
1394 IMPL_XMLOBJECT_CLONE(ManageNameIDResponse);
1397 class SAML_DLLLOCAL LogoutRequestImpl : public virtual LogoutRequest, public RequestImpl
1401 m_NotOnOrAfter=NULL;
1406 m_children.push_back(NULL);
1407 m_children.push_back(NULL);
1408 m_children.push_back(NULL);
1409 m_pos_BaseID=m_pos_Extensions;
1411 m_pos_NameID=m_pos_BaseID;
1413 m_pos_EncryptedID=m_pos_NameID;
1414 ++m_pos_EncryptedID;
1418 virtual ~LogoutRequestImpl() {
1419 XMLString::release(&m_Reason);
1420 delete m_NotOnOrAfter;
1423 LogoutRequestImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1424 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1429 LogoutRequestImpl(const LogoutRequestImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
1432 setReason(src.getReason());
1433 setNotOnOrAfter(src.getNotOnOrAfter());
1435 if (src.getBaseID())
1436 setBaseID(src.getBaseID()->cloneBaseID());
1437 if (src.getNameID())
1438 setNameID(src.getNameID()->cloneNameID());
1439 if (src.getEncryptedID())
1440 setEncryptedID(src.getEncryptedID()->cloneEncryptedID());
1442 for (list<XMLObject*>::const_iterator i=src.m_children.begin(); i!=src.m_children.end(); i++) {
1444 SessionIndex* si = dynamic_cast<SessionIndex*>(*i);
1446 getSessionIndexs().push_back(si->cloneSessionIndex());
1453 IMPL_XMLOBJECT_CLONE(LogoutRequest);
1455 IMPL_STRING_ATTRIB(Reason);
1456 IMPL_DATETIME_ATTRIB(NotOnOrAfter,SAMLTIME_MAX);
1457 IMPL_TYPED_FOREIGN_CHILD(BaseID,saml2);
1458 IMPL_TYPED_FOREIGN_CHILD(NameID,saml2);
1459 IMPL_TYPED_FOREIGN_CHILD(EncryptedID,saml2);
1460 IMPL_TYPED_CHILDREN(SessionIndex,m_children.end());
1463 void marshallAttributes(DOMElement* domElement) const {
1464 MARSHALL_STRING_ATTRIB(Reason,REASON,NULL);
1465 MARSHALL_DATETIME_ATTRIB(NotOnOrAfter,NOTONORAFTER,NULL);
1466 RequestImpl::marshallAttributes(domElement);
1469 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1470 PROC_TYPED_FOREIGN_CHILD(BaseID,saml2,SAMLConstants::SAML20_NS,false);
1471 PROC_TYPED_FOREIGN_CHILD(NameID,saml2,SAMLConstants::SAML20_NS,false);
1472 PROC_TYPED_FOREIGN_CHILD(EncryptedID,saml2,SAMLConstants::SAML20_NS,false);
1473 PROC_TYPED_CHILDREN(SessionIndex,SAMLConstants::SAML20P_NS,false);
1474 RequestImpl::processChildElement(childXMLObject,root);
1476 void processAttribute(const DOMAttr* attribute) {
1477 PROC_STRING_ATTRIB(Reason,REASON,NULL);
1478 PROC_DATETIME_ATTRIB(NotOnOrAfter,NOTONORAFTER,NULL);
1479 RequestImpl::processAttribute(attribute);
1483 class SAML_DLLLOCAL LogoutResponseImpl : public virtual LogoutResponse, public StatusResponseImpl
1486 virtual ~LogoutResponseImpl() { }
1488 LogoutResponseImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1489 : AbstractXMLObject(nsURI, localName, prefix, schemaType) { }
1491 LogoutResponseImpl(const LogoutResponseImpl& src) : AbstractXMLObject(src), StatusResponseImpl(src) {
1494 IMPL_XMLOBJECT_CLONE(LogoutResponse);
1498 class SAML_DLLLOCAL NameIDMappingRequestImpl : public virtual NameIDMappingRequest, public RequestImpl
1504 m_NameIDPolicy=NULL;
1505 m_children.push_back(NULL);
1506 m_children.push_back(NULL);
1507 m_children.push_back(NULL);
1508 m_children.push_back(NULL);
1509 m_pos_BaseID=m_pos_Extensions;
1511 m_pos_NameID=m_pos_BaseID;
1513 m_pos_EncryptedID=m_pos_NameID;
1514 ++m_pos_EncryptedID;
1515 m_pos_NameIDPolicy=m_pos_EncryptedID;
1516 ++m_pos_NameIDPolicy;
1520 virtual ~NameIDMappingRequestImpl() { }
1522 NameIDMappingRequestImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1523 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1528 NameIDMappingRequestImpl(const NameIDMappingRequestImpl& src) : AbstractXMLObject(src), RequestImpl(src) {
1531 if (src.getBaseID())
1532 setBaseID(src.getBaseID()->cloneBaseID());
1533 if (src.getNameID())
1534 setNameID(src.getNameID()->cloneNameID());
1535 if (src.getEncryptedID())
1536 setEncryptedID(src.getEncryptedID()->cloneEncryptedID());
1537 if (src.getNameIDPolicy())
1538 setNameIDPolicy(src.getNameIDPolicy()->cloneNameIDPolicy());
1542 IMPL_XMLOBJECT_CLONE(NameIDMappingRequest);
1544 IMPL_TYPED_FOREIGN_CHILD(BaseID,saml2);
1545 IMPL_TYPED_FOREIGN_CHILD(NameID,saml2);
1546 IMPL_TYPED_FOREIGN_CHILD(EncryptedID,saml2);
1547 IMPL_TYPED_CHILD(NameIDPolicy);
1550 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1551 PROC_TYPED_FOREIGN_CHILD(BaseID,saml2,SAMLConstants::SAML20_NS,false);
1552 PROC_TYPED_FOREIGN_CHILD(NameID,saml2,SAMLConstants::SAML20_NS,false);
1553 PROC_TYPED_FOREIGN_CHILD(EncryptedID,saml2,SAMLConstants::SAML20_NS,false);
1554 PROC_TYPED_CHILD(NameIDPolicy,SAMLConstants::SAML20P_NS,false);
1555 RequestImpl::processChildElement(childXMLObject,root);
1559 class SAML_DLLLOCAL NameIDMappingResponseImpl : public virtual NameIDMappingResponse, public StatusResponseImpl
1564 m_children.push_back(NULL);
1565 m_children.push_back(NULL);
1566 m_pos_NameID=m_pos_Status;
1568 m_pos_EncryptedID=m_pos_NameID;
1569 ++m_pos_EncryptedID;
1572 virtual ~NameIDMappingResponseImpl() { }
1574 NameIDMappingResponseImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType)
1575 : AbstractXMLObject(nsURI, localName, prefix, schemaType)
1580 NameIDMappingResponseImpl(const NameIDMappingResponseImpl& src) : AbstractXMLObject(src), StatusResponseImpl(src) {
1583 if (src.getNameID())
1584 setNameID(getNameID()->cloneNameID());
1585 if (src.getEncryptedID())
1586 setEncryptedID(getEncryptedID()->cloneEncryptedID());
1590 IMPL_XMLOBJECT_CLONE(NameIDMappingResponse);
1591 IMPL_TYPED_FOREIGN_CHILD(NameID,saml2);
1592 IMPL_TYPED_FOREIGN_CHILD(EncryptedID,saml2);
1595 void processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
1596 PROC_TYPED_FOREIGN_CHILD(NameID,saml2,SAMLConstants::SAML20_NS,false);
1597 PROC_TYPED_FOREIGN_CHILD(EncryptedID,saml2,SAMLConstants::SAML20_NS,false);
1598 StatusResponseImpl::processChildElement(childXMLObject,root);
1604 #if defined (_MSC_VER)
1605 #pragma warning( pop )
1608 // Builder Implementations
1609 IMPL_XMLOBJECTBUILDER(Artifact);
1610 IMPL_XMLOBJECTBUILDER(ArtifactResolve);
1611 IMPL_XMLOBJECTBUILDER(ArtifactResponse);
1612 IMPL_XMLOBJECTBUILDER(AssertionIDRequest);
1613 IMPL_XMLOBJECTBUILDER(AttributeQuery);
1614 IMPL_XMLOBJECTBUILDER(AuthnQuery);
1615 IMPL_XMLOBJECTBUILDER(AuthnRequest);
1616 IMPL_XMLOBJECTBUILDER(AuthzDecisionQuery);
1617 IMPL_XMLOBJECTBUILDER(Extensions);
1618 IMPL_XMLOBJECTBUILDER(GetComplete);
1619 IMPL_XMLOBJECTBUILDER(IDPEntry);
1620 IMPL_XMLOBJECTBUILDER(IDPList);
1621 IMPL_XMLOBJECTBUILDER(LogoutRequest);
1622 IMPL_XMLOBJECTBUILDER(LogoutResponse);
1623 IMPL_XMLOBJECTBUILDER(ManageNameIDRequest);
1624 IMPL_XMLOBJECTBUILDER(ManageNameIDResponse);
1625 IMPL_XMLOBJECTBUILDER(NameIDMappingRequest);
1626 IMPL_XMLOBJECTBUILDER(NameIDMappingResponse);
1627 IMPL_XMLOBJECTBUILDER(NameIDPolicy);
1628 IMPL_XMLOBJECTBUILDER(NewEncryptedID);
1629 IMPL_XMLOBJECTBUILDER(NewID);
1630 IMPL_XMLOBJECTBUILDER(RequestedAuthnContext);
1631 IMPL_XMLOBJECTBUILDER(RequesterID);
1632 IMPL_XMLOBJECTBUILDER(Response);
1633 IMPL_XMLOBJECTBUILDER(Scoping);
1634 IMPL_XMLOBJECTBUILDER(SessionIndex);
1635 IMPL_XMLOBJECTBUILDER(Status);
1636 IMPL_XMLOBJECTBUILDER(StatusCode);
1637 IMPL_XMLOBJECTBUILDER(StatusDetail);
1638 IMPL_XMLOBJECTBUILDER(StatusMessage);
1639 IMPL_XMLOBJECTBUILDER(StatusResponse);
1640 IMPL_XMLOBJECTBUILDER(Terminate);
1644 const XMLCh Artifact::LOCAL_NAME[] = UNICODE_LITERAL_8(A,r,t,i,f,a,c,t);
1645 const XMLCh ArtifactResolve::LOCAL_NAME[] = UNICODE_LITERAL_15(A,r,t,i,f,a,c,t,R,e,s,o,l,v,e);
1646 const XMLCh ArtifactResolve::TYPE_NAME[] = UNICODE_LITERAL_19(A,r,t,i,f,a,c,t,R,e,s,o,l,v,e,T,y,p,e);
1647 const XMLCh ArtifactResponse::LOCAL_NAME[] = UNICODE_LITERAL_16(A,r,t,i,f,a,c,t,R,e,s,p,o,n,s,e);
1648 const XMLCh ArtifactResponse::TYPE_NAME[] = UNICODE_LITERAL_20(A,r,t,i,f,a,c,t,R,e,s,p,o,n,s,e,T,y,p,e);
1649 const XMLCh AssertionIDRequest::LOCAL_NAME[] = UNICODE_LITERAL_18(A,s,s,e,r,t,i,o,n,I,D,R,e,q,u,e,s,t);
1650 const XMLCh AssertionIDRequest::TYPE_NAME[] = UNICODE_LITERAL_22(A,s,s,e,r,t,i,o,n,I,D,R,e,q,u,e,s,t,T,y,p,e);
1651 const XMLCh AttributeQuery::LOCAL_NAME[] = UNICODE_LITERAL_14(A,t,t,r,i,b,u,t,e,Q,u,e,r,y);
1652 const XMLCh AttributeQuery::TYPE_NAME[] = UNICODE_LITERAL_18(A,t,t,r,i,b,u,t,e,Q,u,e,r,y,T,y,p,e);
1653 const XMLCh AuthnQuery::LOCAL_NAME[] = UNICODE_LITERAL_10(A,u,t,h,n,Q,u,e,r,y);
1654 const XMLCh AuthnQuery::TYPE_NAME[] = UNICODE_LITERAL_14(A,u,t,h,n,Q,u,e,r,y,T,y,p,e);
1655 const XMLCh AuthnQuery::SESSIONINDEX_ATTRIB_NAME[] = UNICODE_LITERAL_12(S,e,s,s,i,o,n,I,n,d,e,x);
1656 const XMLCh AuthnRequest::LOCAL_NAME[] = UNICODE_LITERAL_12(A,u,t,h,n,R,e,q,u,e,s,t);
1657 const XMLCh AuthnRequest::TYPE_NAME[] = UNICODE_LITERAL_16(A,u,t,h,n,R,e,q,u,e,s,t,T,y,p,e);
1658 const XMLCh AuthnRequest::FORCEAUTHN_ATTRIB_NAME[] = UNICODE_LITERAL_10(F,o,r,c,e,A,u,t,h,n);
1659 const XMLCh AuthnRequest::ISPASSIVE_ATTRIB_NAME[] = UNICODE_LITERAL_9(I,s,P,a,s,s,i,v,e);
1660 const XMLCh AuthnRequest::PROTOCOLBINDING_ATTRIB_NAME[] = UNICODE_LITERAL_15(P,r,o,t,o,c,o,l,B,i,n,d,i,n,g);
1661 const XMLCh AuthnRequest::ASSERTIONCONSUMERSERVICEINDEX_ATTRIB_NAME[] = UNICODE_LITERAL_29(A,s,s,e,r,t,i,o,n,C,o,n,s,u,m,e,r,S,e,r,v,i,c,e,I,n,d,e,x);
1662 const XMLCh AuthnRequest::ASSERTIONCONSUMERSERVICEURL_ATTRIB_NAME[] = UNICODE_LITERAL_27(A,s,s,e,r,t,i,o,n,C,o,n,s,u,m,e,r,S,e,r,v,i,c,e,U,R,L);
1663 const XMLCh AuthnRequest::ATTRIBUTECONSUMINGSERVICEINDEX_ATTRIB_NAME[] = UNICODE_LITERAL_30(A,t,t,r,i,b,u,t,e,C,o,n,s,u,m,i,n,g,S,e,r,v,i,c,e,I,n,d,e,x);
1664 const XMLCh AuthnRequest::PROVIDERNAME_ATTRIB_NAME[] = UNICODE_LITERAL_12(P,r,o,v,i,d,e,r,N,a,m,e);
1665 const XMLCh AuthzDecisionQuery::LOCAL_NAME[] = UNICODE_LITERAL_18(A,u,t,h,z,D,e,c,i,s,i,o,n,Q,u,e,r,y);
1666 const XMLCh AuthzDecisionQuery::TYPE_NAME[] = UNICODE_LITERAL_22(A,u,t,h,z,D,e,c,i,s,i,o,n,Q,u,e,r,y,T,y,p,e);
1667 const XMLCh AuthzDecisionQuery::RESOURCE_ATTRIB_NAME[] = UNICODE_LITERAL_8(R,e,s,o,u,r,c,e);
1668 const XMLCh Extensions::LOCAL_NAME[] = UNICODE_LITERAL_10(E,x,t,e,n,s,i,o,n,s);
1669 const XMLCh Extensions::TYPE_NAME[] = UNICODE_LITERAL_14(E,x,t,e,n,s,i,o,n,s,T,y,p,e);
1670 const XMLCh GetComplete::LOCAL_NAME[] = UNICODE_LITERAL_11(G,e,t,C,o,m,p,l,e,t,e);
1671 const XMLCh IDPEntry::LOCAL_NAME[] = UNICODE_LITERAL_8(I,D,P,E,n,t,r,y);
1672 const XMLCh IDPEntry::TYPE_NAME[] = UNICODE_LITERAL_12(I,D,P,E,n,t,r,y,T,y,p,e);
1673 const XMLCh IDPEntry::PROVIDERID_ATTRIB_NAME[] = UNICODE_LITERAL_10(P,r,o,v,i,d,e,r,I,D);
1674 const XMLCh IDPEntry::NAME_ATTRIB_NAME[] = UNICODE_LITERAL_4(N,a,m,e);
1675 const XMLCh IDPEntry::LOC_ATTRIB_NAME[] = UNICODE_LITERAL_3(L,o,c);
1676 const XMLCh IDPList::LOCAL_NAME[] = UNICODE_LITERAL_7(I,D,P,L,i,s,t);
1677 const XMLCh IDPList::TYPE_NAME[] = UNICODE_LITERAL_11(I,D,P,L,i,s,t,T,y,p,e);
1678 const XMLCh LogoutRequest::LOCAL_NAME[] = UNICODE_LITERAL_13(L,o,g,o,u,t,R,e,q,u,e,s,t);
1679 const XMLCh LogoutRequest::TYPE_NAME[] = UNICODE_LITERAL_17(L,o,g,o,u,t,R,e,q,u,e,s,t,T,y,p,e);
1680 const XMLCh LogoutRequest::REASON_ATTRIB_NAME[] = UNICODE_LITERAL_6(R,e,a,s,o,n);
1681 const XMLCh LogoutRequest::NOTONORAFTER_ATTRIB_NAME[] = UNICODE_LITERAL_12(N,o,t,O,n,O,r,A,f,t,e,r);
1682 const XMLCh LogoutResponse::LOCAL_NAME[] = UNICODE_LITERAL_14(L,o,g,o,u,t,R,e,s,p,o,n,s,e);
1683 const XMLCh ManageNameIDRequest::LOCAL_NAME[] = UNICODE_LITERAL_19(M,a,n,a,g,e,N,a,m,e,I,D,R,e,q,u,e,s,t);
1684 const XMLCh ManageNameIDRequest::TYPE_NAME[] = UNICODE_LITERAL_23(M,a,n,a,g,e,N,a,m,e,I,D,R,e,q,u,e,s,t,T,y,p,e);
1685 const XMLCh ManageNameIDResponse::LOCAL_NAME[] = UNICODE_LITERAL_20(M,a,n,a,g,e,N,a,m,e,I,D,R,e,s,p,o,n,s,e);
1686 const XMLCh NameIDMappingRequest::LOCAL_NAME[] = UNICODE_LITERAL_20(N,a,m,e,I,D,M,a,p,p,i,n,g,R,e,q,u,e,s,t);
1687 const XMLCh NameIDMappingRequest::TYPE_NAME[] = UNICODE_LITERAL_24(N,a,m,e,I,D,M,a,p,p,i,n,g,R,e,q,u,e,s,t,T,y,p,e);
1688 const XMLCh NameIDMappingResponse::LOCAL_NAME[] = UNICODE_LITERAL_21(N,a,m,e,I,D,M,a,p,p,i,n,g,R,e,s,p,o,n,s,e);
1689 const XMLCh NameIDMappingResponse::TYPE_NAME[] = UNICODE_LITERAL_25(N,a,m,e,I,D,M,a,p,p,i,n,g,R,e,s,p,o,n,s,e,T,y,p,e);
1690 const XMLCh NameIDPolicy::LOCAL_NAME[] = UNICODE_LITERAL_12(N,a,m,e,I,D,P,o,l,i,c,y);
1691 const XMLCh NameIDPolicy::TYPE_NAME[] = UNICODE_LITERAL_16(N,a,m,e,I,D,P,o,l,i,c,y,T,y,p,e);
1692 const XMLCh NameIDPolicy::FORMAT_ATTRIB_NAME[] = UNICODE_LITERAL_6(F,o,r,m,a,t);
1693 const XMLCh NameIDPolicy::SPNAMEQUALIFIER_ATTRIB_NAME[] = UNICODE_LITERAL_15(S,P,N,a,m,e,Q,u,a,l,i,f,i,e,r);
1694 const XMLCh NameIDPolicy::ALLOWCREATE_ATTRIB_NAME[] = UNICODE_LITERAL_11(A,l,l,o,w,C,r,e,a,t,e);
1695 const XMLCh NewEncryptedID::LOCAL_NAME[] = UNICODE_LITERAL_14(N,e,w,E,n,c,r,y,p,t,e,d,I,D);
1696 const XMLCh NewID::LOCAL_NAME[] = UNICODE_LITERAL_5(N,e,w,I,D);
1697 const XMLCh RequesterID::LOCAL_NAME[] = UNICODE_LITERAL_11(R,e,q,u,e,s,t,e,r,I,D);
1698 const XMLCh RequestedAuthnContext::LOCAL_NAME[] = UNICODE_LITERAL_21(R,e,q,u,e,s,t,e,d,A,u,t,h,n,C,o,n,t,e,x,t);
1699 const XMLCh RequestedAuthnContext::TYPE_NAME[] = UNICODE_LITERAL_25(R,e,q,u,e,s,t,e,d,A,u,t,h,n,C,o,n,t,e,x,t,T,y,p,e);
1700 const XMLCh RequestedAuthnContext::COMPARISON_ATTRIB_NAME[] = UNICODE_LITERAL_10(C,o,m,p,a,r,i,s,o,n);
1701 const XMLCh RequestedAuthnContext::COMPARISON_EXACT[] = UNICODE_LITERAL_5(e,x,a,c,t);
1702 const XMLCh RequestedAuthnContext::COMPARISON_MINIMUM[] = UNICODE_LITERAL_7(m,i,n,i,m,u,m);
1703 const XMLCh RequestedAuthnContext::COMPARISON_MAXIMUM[] = UNICODE_LITERAL_7(m,a,x,i,m,u,m);
1704 const XMLCh RequestedAuthnContext::COMPARISON_BETTER[] = UNICODE_LITERAL_6(b,e,t,t,e,r);
1705 const XMLCh Request::LOCAL_NAME[] = {chNull};
1706 const XMLCh Request::TYPE_NAME[] = UNICODE_LITERAL_19(R,e,q,u,e,s,t,A,b,s,t,r,a,c,t,T,y,p,e);
1707 const XMLCh Request::ID_ATTRIB_NAME[] = UNICODE_LITERAL_2(I,D);
1708 const XMLCh Request::VER_ATTRIB_NAME[] = UNICODE_LITERAL_7(V,e,r,s,i,o,n);
1709 const XMLCh Request::ISSUEINSTANT_ATTRIB_NAME[] = UNICODE_LITERAL_12(I,s,s,u,e,I,n,s,t,a,n,t);
1710 const XMLCh Request::DESTINATION_ATTRIB_NAME[] = UNICODE_LITERAL_11(D,e,s,t,i,n,a,t,i,o,n);
1711 const XMLCh Request::CONSENT_ATTRIB_NAME[] = UNICODE_LITERAL_7(C,o,n,s,e,n,t);
1712 const XMLCh Response::LOCAL_NAME[] = UNICODE_LITERAL_8(R,e,s,p,o,n,s,e);
1713 const XMLCh Response::TYPE_NAME[] = UNICODE_LITERAL_12(R,e,s,p,o,n,s,e,T,y,p,e);
1714 const XMLCh Scoping::LOCAL_NAME[] = UNICODE_LITERAL_7(S,c,o,p,i,n,g);
1715 const XMLCh Scoping::TYPE_NAME[] = UNICODE_LITERAL_11(S,c,o,p,i,n,g,T,y,p,e);
1716 const XMLCh Scoping::PROXYCOUNT_ATTRIB_NAME[] = UNICODE_LITERAL_10(P,r,o,x,y,C,o,u,n,t);
1717 const XMLCh SessionIndex::LOCAL_NAME[] = UNICODE_LITERAL_12(S,e,s,s,i,o,n,I,n,d,e,x);
1718 const XMLCh Status::LOCAL_NAME[] = UNICODE_LITERAL_6(S,t,a,t,u,s);
1719 const XMLCh Status::TYPE_NAME[] = UNICODE_LITERAL_10(S,t,a,t,u,s,T,y,p,e);
1720 const XMLCh StatusCode::LOCAL_NAME[] = UNICODE_LITERAL_10(S,t,a,t,u,s,C,o,d,e);
1721 const XMLCh StatusCode::TYPE_NAME[] = UNICODE_LITERAL_14(S,t,a,t,u,s,C,o,d,e,T,y,p,e);
1722 const XMLCh StatusCode::VALUE_ATTRIB_NAME[] = UNICODE_LITERAL_5(V,a,l,u,e);
1723 const XMLCh StatusDetail::LOCAL_NAME[] = UNICODE_LITERAL_12(S,t,a,t,u,s,D,e,t,a,i,l);
1724 const XMLCh StatusDetail::TYPE_NAME[] = UNICODE_LITERAL_16(S,t,a,t,u,s,D,e,t,a,i,l,T,y,p,e);
1725 const XMLCh StatusMessage::LOCAL_NAME[] = UNICODE_LITERAL_13(S,t,a,t,u,s,M,e,s,s,a,g,e);
1726 const XMLCh StatusResponse::LOCAL_NAME[] = {chNull};
1727 const XMLCh StatusResponse::TYPE_NAME[] = UNICODE_LITERAL_18(S,t,a,t,u,s,R,e,s,p,o,n,s,e,T,y,p,e);
1728 const XMLCh StatusResponse::ID_ATTRIB_NAME[] = UNICODE_LITERAL_2(I,D);
1729 const XMLCh StatusResponse::INRESPONSETO_ATTRIB_NAME[] = UNICODE_LITERAL_12(I,n,R,e,s,p,o,n,s,e,T,o);
1730 const XMLCh StatusResponse::VER_ATTRIB_NAME[] = UNICODE_LITERAL_7(V,e,r,s,i,o,n);
1731 const XMLCh StatusResponse::ISSUEINSTANT_ATTRIB_NAME[] = UNICODE_LITERAL_12(I,s,s,u,e,I,n,s,t,a,n,t);
1732 const XMLCh StatusResponse::DESTINATION_ATTRIB_NAME[] = UNICODE_LITERAL_11(D,e,s,t,i,n,a,t,i,o,n);
1733 const XMLCh StatusResponse::CONSENT_ATTRIB_NAME[] = UNICODE_LITERAL_7(C,o,n,s,e,n,t);
1734 const XMLCh SubjectQuery::LOCAL_NAME[] = {chNull};
1735 const XMLCh SubjectQuery::TYPE_NAME[] = UNICODE_LITERAL_16(S,u,b,j,e,c,t,Q,u,e,r,y,T,y,p,e);
1736 const XMLCh Terminate::LOCAL_NAME[] = UNICODE_LITERAL_9(T,e,r,m,i,n,a,t,e);
1737 const XMLCh Terminate::TYPE_NAME[] = UNICODE_LITERAL_13(T,e,r,m,i,n,a,t,e,T,y,p,e);
1739 // Unicode literals: LogoutRequest element, Reason attribute
1740 const XMLCh LogoutRequest::REASON_USER[] = // urn:oasis:names:tc:SAML:2.0:logout:user
1741 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1742 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1743 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1744 chLatin_l, chLatin_o, chLatin_g, chLatin_o, chLatin_u, chLatin_t, chColon,
1745 chLatin_u, chLatin_s, chLatin_e, chLatin_r, chNull
1748 const XMLCh LogoutRequest::REASON_ADMIN[] = // urn:oasis:names:tc:SAML:2.0:logout:admin
1749 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1750 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1751 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1752 chLatin_l, chLatin_o, chLatin_g, chLatin_o, chLatin_u, chLatin_t, chColon,
1753 chLatin_a, chLatin_d, chLatin_m, chLatin_i, chLatin_n, chNull
1757 const XMLCh LogoutRequest::REASON_GLOBAL_TIMEOUT[] = // urn:oasis:names:tc:SAML:2.0:logout:global-timeout
1758 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1759 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1760 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1761 chLatin_l, chLatin_o, chLatin_g, chLatin_o, chLatin_u, chLatin_t, chColon,
1762 chLatin_g, chLatin_l, chLatin_o, chLatin_b, chLatin_a, chLatin_l,
1763 chDash, chLatin_t, chLatin_i, chLatin_m, chLatin_e, chLatin_o, chLatin_u, chLatin_t, chNull
1767 const XMLCh LogoutRequest::REASON_SP_TIMEOUT[] = // urn:oasis:names:tc:SAML:2.0:logout:sp-timeout
1768 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1769 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1770 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1771 chLatin_l, chLatin_o, chLatin_g, chLatin_o, chLatin_u, chLatin_t, chColon,
1772 chLatin_s, chLatin_p, chDash, chLatin_t, chLatin_i, chLatin_m, chLatin_e, chLatin_o, chLatin_u, chLatin_t, chNull
1776 // Unicode literals, StatusCode Value
1777 const XMLCh StatusCode::SUCCESS[] = // urn:oasis:names:tc:SAML:2.0:status:Success
1778 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1779 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1780 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1781 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1782 chLatin_S, chLatin_u, chLatin_c, chLatin_c, chLatin_e, chLatin_s, chLatin_s, chNull
1785 const XMLCh StatusCode::REQUESTER[] = // urn:oasis:names:tc:SAML:2.0:status:Requester
1786 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1787 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1788 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1789 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1790 chLatin_R, chLatin_e, chLatin_q, chLatin_u, chLatin_e, chLatin_s, chLatin_t, chLatin_e, chLatin_r, chNull
1793 const XMLCh StatusCode::RESPONDER[] = // urn:oasis:names:tc:SAML:2.0:status:Responder
1794 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1795 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1796 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1797 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1798 chLatin_R, chLatin_e, chLatin_s, chLatin_p, chLatin_o, chLatin_n, chLatin_d, chLatin_e, chLatin_r, chNull
1801 const XMLCh StatusCode::VERSION_MISMATCH[] = // urn:oasis:names:tc:SAML:2.0:status:VersionMismatch
1802 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1803 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1804 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1805 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1806 chLatin_V, chLatin_e, chLatin_r, chLatin_s, chLatin_i, chLatin_o, chLatin_n,
1807 chLatin_M, chLatin_i, chLatin_s, chLatin_m, chLatin_a, chLatin_t, chLatin_c, chLatin_h, chNull
1810 const XMLCh StatusCode::AUTHN_FAILED[] = // urn:oasis:names:tc:SAML:2.0:status:AuthnFailed
1811 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1812 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1813 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1814 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1815 chLatin_A, chLatin_u, chLatin_t, chLatin_h, chLatin_n,
1816 chLatin_F, chLatin_a, chLatin_i, chLatin_l, chLatin_e, chLatin_d, chNull
1819 const XMLCh StatusCode::INVALID_ATTR_NAME_OR_VALUE[] = // urn:oasis:names:tc:SAML:2.0:status:InvalidAttrNameOrValue
1820 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1821 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1822 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1823 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1824 chLatin_I, chLatin_n, chLatin_v, chLatin_a, chLatin_l, chLatin_i, chLatin_d,
1825 chLatin_A, chLatin_t, chLatin_t, chLatin_r, chLatin_N, chLatin_a, chLatin_m, chLatin_e,
1826 chLatin_O, chLatin_r, chLatin_V, chLatin_a, chLatin_l, chLatin_u, chLatin_e, chNull
1829 const XMLCh StatusCode::INVALID_NAMEID_POLICY[] = // urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy
1830 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1831 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1832 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1833 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1834 chLatin_I, chLatin_n, chLatin_v, chLatin_a, chLatin_l, chLatin_i, chLatin_d,
1835 chLatin_N, chLatin_a, chLatin_m, chLatin_e, chLatin_I, chLatin_D,
1836 chLatin_P, chLatin_o, chLatin_l, chLatin_i, chLatin_c, chLatin_y, chNull
1839 const XMLCh StatusCode::NO_AUTHN_CONTEXT[] = // urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext
1840 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1841 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1842 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1843 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1844 chLatin_N, chLatin_o, chLatin_A, chLatin_u, chLatin_t, chLatin_h, chLatin_n,
1845 chLatin_C, chLatin_o, chLatin_n, chLatin_t, chLatin_e, chLatin_x, chLatin_t, chNull
1848 const XMLCh StatusCode::NO_AVAILABLE_IDP[] = // urn:oasis:names:tc:SAML:2.0:status:NoAvailableIDP
1849 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1850 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1851 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1852 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1853 chLatin_N, chLatin_o, chLatin_A, chLatin_v, chLatin_a, chLatin_i, chLatin_l, chLatin_a, chLatin_b, chLatin_l, chLatin_e,
1854 chLatin_I, chLatin_D, chLatin_P, chNull
1857 const XMLCh StatusCode::NO_PASSIVE[] = // urn:oasis:names:tc:SAML:2.0:status:NoPassive
1858 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1859 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1860 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1861 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1862 chLatin_N, chLatin_o, chLatin_P, chLatin_a, chLatin_s, chLatin_s, chLatin_i, chLatin_v, chLatin_e, chNull
1865 const XMLCh StatusCode::NO_SUPPORTED_IDP[] = // urn:oasis:names:tc:SAML:2.0:status:NoSupportedIDP
1866 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1867 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1868 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1869 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1870 chLatin_N, chLatin_o, chLatin_S, chLatin_u, chLatin_p, chLatin_p, chLatin_o, chLatin_r, chLatin_t, chLatin_e, chLatin_d,
1871 chLatin_I, chLatin_D, chLatin_P, chNull
1874 const XMLCh StatusCode::PARTIAL_LOGOUT[] = // urn:oasis:names:tc:SAML:2.0:status:PartialLogout
1875 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1876 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1877 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1878 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1879 chLatin_P, chLatin_a, chLatin_r, chLatin_t, chLatin_i, chLatin_a, chLatin_l,
1880 chLatin_L, chLatin_o, chLatin_g, chLatin_o, chLatin_u, chLatin_t, chNull
1883 const XMLCh StatusCode::PROXY_COUNT_EXCEEDED[] = // urn:oasis:names:tc:SAML:2.0:status:ProxyCountExceeded
1884 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1885 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1886 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1887 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1888 chLatin_P, chLatin_r, chLatin_o, chLatin_x, chLatin_y, chLatin_C, chLatin_o, chLatin_u, chLatin_n, chLatin_t,
1889 chLatin_E, chLatin_x, chLatin_c, chLatin_e, chLatin_e, chLatin_d, chLatin_e, chLatin_d, chNull
1892 const XMLCh StatusCode::REQUEST_DENIED[] = // urn:oasis:names:tc:SAML:2.0:status:RequestDenied
1893 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1894 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1895 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1896 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1897 chLatin_R, chLatin_e, chLatin_q, chLatin_u, chLatin_e, chLatin_s, chLatin_t,
1898 chLatin_D, chLatin_e, chLatin_n, chLatin_i, chLatin_e, chLatin_d, chNull
1901 const XMLCh StatusCode::REQUEST_UNSUPPORTED[] = // urn:oasis:names:tc:SAML:2.0:status:RequestUnsupported
1902 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1903 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1904 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1905 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1906 chLatin_R, chLatin_e, chLatin_q, chLatin_u, chLatin_e, chLatin_s, chLatin_t,
1907 chLatin_U, chLatin_n, chLatin_s, chLatin_u, chLatin_p, chLatin_p, chLatin_o, chLatin_r, chLatin_t, chLatin_e, chLatin_d, chNull
1910 const XMLCh StatusCode::REQUEST_VERSION_DEPRECATED[] = // urn:oasis:names:tc:SAML:2.0:status:RequestVersionDeprecated
1911 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1912 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1913 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1914 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1915 chLatin_R, chLatin_e, chLatin_q, chLatin_u, chLatin_e, chLatin_s, chLatin_t,
1916 chLatin_V, chLatin_e, chLatin_r, chLatin_s, chLatin_i, chLatin_o, chLatin_n,
1917 chLatin_D, chLatin_e, chLatin_p, chLatin_r, chLatin_e, chLatin_c, chLatin_a, chLatin_t, chLatin_e, chLatin_d, chNull
1920 const XMLCh StatusCode::REQUEST_VERSION_TOO_HIGH[] = // urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooHigh
1921 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1922 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1923 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1924 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1925 chLatin_R, chLatin_e, chLatin_q, chLatin_u, chLatin_e, chLatin_s, chLatin_t,
1926 chLatin_V, chLatin_e, chLatin_r, chLatin_s, chLatin_i, chLatin_o, chLatin_n,
1927 chLatin_T, chLatin_o, chLatin_o, chLatin_H, chLatin_i, chLatin_g, chLatin_h, chNull
1930 const XMLCh StatusCode::REQUEST_VERSION_TOO_LOW[] = // urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooLow
1931 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1932 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1933 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1934 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1935 chLatin_R, chLatin_e, chLatin_q, chLatin_u, chLatin_e, chLatin_s, chLatin_t,
1936 chLatin_V, chLatin_e, chLatin_r, chLatin_s, chLatin_i, chLatin_o, chLatin_n,
1937 chLatin_T, chLatin_o, chLatin_o, chLatin_L, chLatin_o, chLatin_w, chNull
1940 const XMLCh StatusCode::RESOURCE_NOT_RECOGNIZED[] = // urn:oasis:names:tc:SAML:2.0:status:ResourceNotRecognized
1941 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1942 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1943 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1944 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1945 chLatin_R, chLatin_e, chLatin_s, chLatin_o, chLatin_u, chLatin_r, chLatin_c, chLatin_e,
1946 chLatin_N, chLatin_o, chLatin_t,
1947 chLatin_R, chLatin_e, chLatin_c, chLatin_o, chLatin_g, chLatin_n, chLatin_i, chLatin_z, chLatin_e, chLatin_d, chNull
1950 const XMLCh StatusCode::TOO_MANY_RESPONSES[] = // urn:oasis:names:tc:SAML:2.0:status:TooManyResponses
1951 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1952 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1953 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1954 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1955 chLatin_T, chLatin_o, chLatin_o, chLatin_M, chLatin_a, chLatin_n, chLatin_y,
1956 chLatin_R, chLatin_e, chLatin_s, chLatin_p, chLatin_o, chLatin_n, chLatin_s, chLatin_e, chLatin_s, chNull
1959 const XMLCh StatusCode::UNKNOWN_ATTR_PROFILE[] = // urn:oasis:names:tc:SAML:2.0:status:UnknownAttrProfile
1960 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1961 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1962 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1963 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1964 chLatin_U, chLatin_n, chLatin_k, chLatin_n, chLatin_o, chLatin_w, chLatin_n,
1965 chLatin_A, chLatin_t, chLatin_t, chLatin_r,
1966 chLatin_P, chLatin_r, chLatin_o, chLatin_f, chLatin_i, chLatin_l, chLatin_e, chNull
1969 const XMLCh StatusCode::UNKNOWN_PRINCIPAL[] = // urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal
1970 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1971 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1972 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1973 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1974 chLatin_U, chLatin_n, chLatin_k, chLatin_n, chLatin_o, chLatin_w, chLatin_n,
1975 chLatin_P, chLatin_r, chLatin_i, chLatin_n, chLatin_c, chLatin_i, chLatin_p, chLatin_a, chLatin_l, chNull
1978 const XMLCh StatusCode::UNSUPPORTED_BINDING[] = // urn:oasis:names:tc:SAML:2.0:status:UnsupportedBinding
1979 { chLatin_u, chLatin_r, chLatin_n, chColon, chLatin_o, chLatin_a, chLatin_s, chLatin_i, chLatin_s, chColon,
1980 chLatin_n, chLatin_a, chLatin_m, chLatin_e, chLatin_s, chColon, chLatin_t, chLatin_c, chColon,
1981 chLatin_S, chLatin_A, chLatin_M, chLatin_L, chColon, chDigit_2, chPeriod, chDigit_0, chColon,
1982 chLatin_s, chLatin_t, chLatin_a, chLatin_t, chLatin_u, chLatin_s, chColon,
1983 chLatin_U, chLatin_n, chLatin_s, chLatin_u, chLatin_p, chLatin_p, chLatin_o, chLatin_r, chLatin_t, chLatin_e, chLatin_d,
1984 chLatin_B, chLatin_i, chLatin_n, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chNull