virtual ~RootObject() {}
/**
+ * Indicates whether the object is an assertion.
+ *
+ * @return true iff the object is an assertion
+ */
+ virtual bool isAssertion() const {
+ return false;
+ }
+
+ /**
* Returns the unique SAML ID of the object.
*
* @return the unique SAML ID
END_XMLOBJECT;
BEGIN_XMLOBJECT(SAML_API,Assertion,RootObject,SAML 1.x Assertion element);
+ bool isAssertion() const {
+ return true;
+ }
DECL_INTEGER_ATTRIB(MinorVersion,MINORVERSION);
DECL_STRING_ATTRIB(AssertionID,ASSERTIONID);
DECL_STRING_ATTRIB(Issuer,ISSUER);
};
BEGIN_XMLOBJECT(SAML_API,Assertion,saml2::RootObject,SAML 2.0 Assertion element);
+ bool isAssertion() const {
+ return true;
+ }
DECL_INHERITED_STRING_ATTRIB(Version,VER);
DECL_INHERITED_STRING_ATTRIB(ID,ID);
DECL_INHERITED_DATETIME_ATTRIB(IssueInstant,ISSUEINSTANT);