Error out when no Key element found.
authorScott Cantor <cantor.2@osu.edu>
Thu, 7 Jun 2007 00:05:07 +0000 (00:05 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 7 Jun 2007 00:05:07 +0000 (00:05 +0000)
xmlproviders/CredResolvers.cpp

index 81f7830..a68ef61 100644 (file)
@@ -163,6 +163,9 @@ FileResolver::FileResolver(const DOMElement* e)
         }
 
     }
+    else {
+        throw CredentialException("FileResolver can't access key file, no Key element specified.");
+    }
         
     // Check for Certificate
     e=saml::XML::getFirstChildElement(root,::XML::CREDS_NS,SHIB_L(Certificate));