git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/branches/REL_2@460
fb386ef7-a10c-0410-8ebf-
fd3f8e989ab0
if (!ptr->hasChildren()) {
XMLOBJECTVALIDATOR_ONEOF(Conditions,NotBefore,NotOnOrAfter);
}
+ else if (ptr->getDoNotCacheConditions().size() > 1) {
+ throw ValidationException("Multiple DoNotCacheCondition elements are not permitted.");
+ }
END_XMLOBJECTVALIDATOR;
BEGIN_XMLOBJECTVALIDATOR(SAML_DLLLOCAL,SubjectConfirmation);
if (!ptr->hasChildren()) {
XMLOBJECTVALIDATOR_ONEOF(Conditions,NotBefore,NotOnOrAfter);
}
+ else if (ptr->getOneTimeUses().size() > 1) {
+ throw ValidationException("Multiple OneTimeUse condition elements are not permitted.");
+ }
+ else if (ptr->getProxyRestrictions().size() > 1) {
+ throw ValidationException("Multiple ProxyRestriction condition elements are not permitted.");
+ }
END_XMLOBJECTVALIDATOR;
BEGIN_XMLOBJECTVALIDATOR(SAML_DLLLOCAL,KeyInfoConfirmationDataType);